Skip to content

Commit adab5a5

Browse files
committed
Merge remote-tracking branch 'origin/AC-15329' into spartans_pr_03092025
2 parents 594db62 + 2bb623e commit adab5a5

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

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

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

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

0 commit comments

Comments
 (0)