Skip to content

Commit ac40d43

Browse files
committed
Add missing attributes initialization to avoid throwing foreach error
1 parent 4cdcb74 commit ac40d43

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/code/Magento/Eav/Model/Form.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,8 @@ public function getAttributes()
323323
if ($this->_attributes === null) {
324324
$this->_attributes = [];
325325
$this->_userAttributes = [];
326+
$this->_systemAttributes = [];
327+
$this->_allowedAttributes = [];
326328
/** @var $attribute \Magento\Eav\Model\Attribute */
327329
foreach ($this->_getFilteredFormAttributeCollection() as $attribute) {
328330
$this->_attributes[$attribute->getAttributeCode()] = $attribute;

0 commit comments

Comments
 (0)