Skip to content

Commit 9b76a32

Browse files
author
Mariana Lashch
committed
Merge branch 'MAGETWO-93990' into mpi-PR-2008
2 parents 56556f4 + d544af3 commit 9b76a32

File tree

2 files changed

+4
-0
lines changed
  • app/code/Magento/Catalog

2 files changed

+4
-0
lines changed

app/code/Magento/Catalog/Model/ResourceModel/Product/Collection.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -818,6 +818,7 @@ protected function doAddWebsiteNamesToResult()
818818
foreach ($this as $product) {
819819
if (isset($productWebsites[$product->getId()])) {
820820
$product->setData('websites', $productWebsites[$product->getId()]);
821+
$product->setData('website_ids', $productWebsites[$product->getId()]);
821822
}
822823
}
823824
return $this;

app/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier/Eav.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -909,6 +909,9 @@ private function canDisplayUseDefault(ProductAttributeInterface $attribute)
909909
$attributeCode = $attribute->getAttributeCode();
910910
/** @var Product $product */
911911
$product = $this->locator->getProduct();
912+
if ($product->isLockedAttribute($attributeCode)) {
913+
return false;
914+
}
912915

913916
if (isset($this->canDisplayUseDefault[$attributeCode])) {
914917
return $this->canDisplayUseDefault[$attributeCode];

0 commit comments

Comments
 (0)