Skip to content

Commit 6638485

Browse files
committed
Reverting back AC-15329 changes
1 parent 554f037 commit 6638485

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

setup/src/Magento/Setup/Model/ConfigModel.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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

77
namespace 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

0 commit comments

Comments
 (0)