Skip to content

Commit 3484247

Browse files
committed
AC-15329::missing default values fix
1 parent 086ef00 commit 3484247

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,11 @@ public function getAvailableOptions()
7373
}
7474

7575
$optionCollection = array_merge([], ...$optionCollection);
76+
7677
foreach ($optionCollection as $option) {
7778
$currentValue = $this->deploymentConfig->get($option->getConfigPath());
78-
if ($currentValue !== null) {
79-
$option->setDefault();
79+
if ($currentValue !== null && $option->acceptValue()) {
80+
$option->setDefault($currentValue);
8081
}
8182
}
8283

0 commit comments

Comments
 (0)