We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f94b4a8 + 45e211f commit 9124be5Copy full SHA for 9124be5
app/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier/Websites.php
@@ -175,11 +175,9 @@ protected function getFieldsForFieldset()
175
$label = __('Websites');
176
177
$defaultWebsiteId = $this->websiteRepository->getDefault()->getId();
178
- $isOnlyOneWebsiteAvailable = count($websitesList) === 1;
179
foreach ($websitesList as $website) {
180
$isChecked = in_array($website['id'], $websiteIds)
181
- || ($defaultWebsiteId == $website['id'] && $isNewProduct)
182
- || $isOnlyOneWebsiteAvailable;
+ || ($defaultWebsiteId == $website['id'] && $isNewProduct);
183
$children[$website['id']] = [
184
'arguments' => [
185
'data' => [
0 commit comments