File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/code/Magento/Catalog/Model Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -948,10 +948,10 @@ public function beforeSave()
948
948
)
949
949
&& !$ this ->authorization ->isAllowed ('Magento_Catalog::edit_category_design ' )
950
950
) {
951
- $ this ->getCustomAttributes ();
952
951
foreach ($ this ->_designAttributes as $ attributeCode ) {
953
952
$ this ->setData ($ attributeCode , $ value = $ this ->getOrigData ($ attributeCode ));
954
- if (array_key_exists ($ attributeCode , $ this ->_data [self ::CUSTOM_ATTRIBUTES ])) {
953
+ if (!empty ($ this ->_data [self ::CUSTOM_ATTRIBUTES ])
954
+ && array_key_exists ($ attributeCode , $ this ->_data [self ::CUSTOM_ATTRIBUTES ])) {
955
955
//In case custom attribute were used to update the entity.
956
956
$ this ->_data [self ::CUSTOM_ATTRIBUTES ][$ attributeCode ]->setValue ($ value );
957
957
}
You can’t perform that action at this time.
0 commit comments