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 a52c291 commit 2da9b7fCopy full SHA for 2da9b7f
app/code/Magento/Catalog/Controller/Adminhtml/Product/Attribute/Save.php
@@ -221,7 +221,7 @@ public function execute()
221
return $this->returnResult('catalog/*/', [], ['error' => true]);
222
}
223
// entity type check
224
- if ($model->getEntityTypeId() != $this->_entityTypeId || isset($data['backend_model'])) {
+ if ($model->getEntityTypeId() != $this->_entityTypeId || array_key_exists('backend_model', $data)) {
225
$this->messageManager->addErrorMessage(__('We can\'t update the attribute.'));
226
$this->_session->setAttributeData($data);
227
0 commit comments