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