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.
1 parent 8fba0f8 commit 8e91f79Copy full SHA for 8e91f79
app/code/Magento/Catalog/Model/Category.php
@@ -950,7 +950,8 @@ public function beforeSave()
950
) {
951
foreach ($this->_designAttributes as $attributeCode) {
952
$this->setData($attributeCode, $value = $this->getOrigData($attributeCode));
953
- if (array_key_exists($attributeCode, $this->_data[self::CUSTOM_ATTRIBUTES])) {
+ if (!empty($this->_data[self::CUSTOM_ATTRIBUTES])
954
+ && array_key_exists($attributeCode, $this->_data[self::CUSTOM_ATTRIBUTES])) {
955
//In case custom attribute were used to update the entity.
956
$this->_data[self::CUSTOM_ATTRIBUTES][$attributeCode]->setValue($value);
957
}
0 commit comments