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