Skip to content

Commit d7e2539

Browse files
authored
Merge pull request PrestaShop#37803 from boherm/PrestaShop#37320-fix-disabling-multistore
2 parents 21caa62 + 82019a4 commit d7e2539

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/PrestaShopBundle/Form/Admin/Configure/ShopParameters/General/PreferencesType.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ public function buildForm(FormBuilderInterface $builder, array $options)
206206
),
207207
])
208208
->add('multishop_feature_active', SwitchType::class, [
209-
'disabled' => !$this->isContextDependantOptionEnabled(),
209+
// Disable the checkbox if multistore feature is active and at least 2 shops exist (@see PrestaShop/PrestaShop/Adapter/Feature/MultistoreFeature)
210+
'disabled' => $this->isMultistoreUsed,
210211
'label' => $this->trans('Enable Multistore', 'Admin.Shopparameters.Feature'),
211212
'help' => $this->trans(
212213
'The multistore feature allows you to manage several front offices from a single back office. If this feature is enabled, a Multistore page is available in the Advanced Parameters menu.',

0 commit comments

Comments
 (0)