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 11<?php
22/**
3- * Copyright 2025 Adobe
4- * All Rights Reserved .
3+ * Copyright © Magento, Inc. All rights reserved.
4+ * See COPYING.txt for license details .
55 */
66
77namespace Magento \Setup \Model ;
@@ -67,15 +67,17 @@ public function getAvailableOptions()
6767 /** @var AbstractConfigOption[] $optionCollection */
6868 $ optionCollection = [];
6969 $ optionLists = $ this ->collector ->collectOptionsLists ();
70+
7071 foreach ($ optionLists as $ optionList ) {
7172 $ optionCollection [] = $ optionList ->getOptions ();
7273 }
7374
7475 $ optionCollection = array_merge ([], ...$ optionCollection );
76+
7577 foreach ($ optionCollection as $ option ) {
7678 $ currentValue = $ this ->deploymentConfig ->get ($ option ->getConfigPath ());
77- if ($ currentValue !== null && $ option -> acceptValue () ) {
78- $ option ->setDefault ($ currentValue );
79+ if ($ currentValue !== null ) {
80+ $ option ->setDefault ();
7981 }
8082 }
8183
You can’t perform that action at this time.
0 commit comments