File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
app/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -274,7 +274,7 @@ public function __construct(
274
274
}
275
275
276
276
/**
277
- * { @inheritdoc}
277
+ * @inheritdoc
278
278
* @since 101.0.0
279
279
*/
280
280
public function modifyMeta (array $ meta )
@@ -385,7 +385,7 @@ public function getContainerChildren(ProductAttributeInterface $attribute, $grou
385
385
}
386
386
387
387
/**
388
- * { @inheritdoc}
388
+ * @inheritdoc
389
389
* @since 101.0.0
390
390
*/
391
391
public function modifyData (array $ data )
@@ -908,6 +908,9 @@ private function canDisplayUseDefault(ProductAttributeInterface $attribute)
908
908
$ attributeCode = $ attribute ->getAttributeCode ();
909
909
/** @var Product $product */
910
910
$ product = $ this ->locator ->getProduct ();
911
+ if ($ product ->isLockedAttribute ($ attributeCode )) {
912
+ return false ;
913
+ }
911
914
912
915
if (isset ($ this ->canDisplayUseDefault [$ attributeCode ])) {
913
916
return $ this ->canDisplayUseDefault [$ attributeCode ];
You can’t perform that action at this time.
0 commit comments