File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
Model/ResourceModel/Product
Ui/DataProvider/Product/Form/Modifier Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -818,6 +818,7 @@ protected function doAddWebsiteNamesToResult()
818
818
foreach ($ this as $ product ) {
819
819
if (isset ($ productWebsites [$ product ->getId ()])) {
820
820
$ product ->setData ('websites ' , $ productWebsites [$ product ->getId ()]);
821
+ $ product ->setData ('website_ids ' , $ productWebsites [$ product ->getId ()]);
821
822
}
822
823
}
823
824
return $ this ;
Original file line number Diff line number Diff line change @@ -909,6 +909,9 @@ private function canDisplayUseDefault(ProductAttributeInterface $attribute)
909
909
$ attributeCode = $ attribute ->getAttributeCode ();
910
910
/** @var Product $product */
911
911
$ product = $ this ->locator ->getProduct ();
912
+ if ($ product ->isLockedAttribute ($ attributeCode )) {
913
+ return false ;
914
+ }
912
915
913
916
if (isset ($ this ->canDisplayUseDefault [$ attributeCode ])) {
914
917
return $ this ->canDisplayUseDefault [$ attributeCode ];
You can’t perform that action at this time.
0 commit comments