File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
setup/src/Magento/Setup/Model Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
/**
3
- * Copyright © Magento, Inc. All rights reserved.
4
- * See COPYING.txt for license details .
3
+ * Copyright 2025 Adobe
4
+ * All Rights Reserved .
5
5
*/
6
6
7
7
namespace Magento \Setup \Model ;
@@ -67,17 +67,15 @@ public function getAvailableOptions()
67
67
/** @var AbstractConfigOption[] $optionCollection */
68
68
$ optionCollection = [];
69
69
$ optionLists = $ this ->collector ->collectOptionsLists ();
70
-
71
70
foreach ($ optionLists as $ optionList ) {
72
71
$ optionCollection [] = $ optionList ->getOptions ();
73
72
}
74
73
75
74
$ optionCollection = array_merge ([], ...$ optionCollection );
76
-
77
75
foreach ($ optionCollection as $ option ) {
78
76
$ currentValue = $ this ->deploymentConfig ->get ($ option ->getConfigPath ());
79
- if ($ currentValue !== null ) {
80
- $ option ->setDefault ();
77
+ if ($ currentValue !== null && $ option -> acceptValue () ) {
78
+ $ option ->setDefault ($ currentValue );
81
79
}
82
80
}
83
81
You can’t perform that action at this time.
0 commit comments