Skip to content

Commit 328397c

Browse files
committed
ACP2E-981: Error when creating event attribute which is reserved keyword
1 parent 718521d commit 328397c

File tree

1 file changed

+3
-0
lines changed
  • app/code/Magento/Catalog/Controller/Adminhtml/Product/Attribute

1 file changed

+3
-0
lines changed

app/code/Magento/Catalog/Controller/Adminhtml/Product/Attribute/Save.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,9 @@ public function execute()
327327
return $this->returnResult('catalog/*/', [], ['error' => false]);
328328
} catch (\Exception $e) {
329329
$this->messageManager->addErrorMessage($e->getMessage());
330+
if ($attributeId === null) {
331+
unset($data['frontend_input']);
332+
}
330333
$this->_session->setAttributeData($data);
331334
return $this->returnResult(
332335
'catalog/*/edit',

0 commit comments

Comments
 (0)