Skip to content

Commit

Permalink
apply fix to the AbstractEntity
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael Petrini committed Mar 10, 2016
1 parent 516bbe8 commit 3f9b64b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/code/Magento/Eav/Model/Entity/AbstractEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -1064,7 +1064,11 @@ protected function _loadModelAttributes($object)
$selectGroups = $this->_resourceHelper->getLoadAttributesSelectGroups($selects);
foreach ($selectGroups as $selects) {
if (!empty($selects)) {
$select = $this->_prepareLoadSelect($selects);
if (is_array($selects)) {
$select = $this->_prepareLoadSelect($selects);
} else {
$select = $selects;
}
$values = $this->getConnection()->fetchAll($select);
foreach ($values as $valueRow) {
$this->_setAttributeValue($object, $valueRow);
Expand Down

0 comments on commit 3f9b64b

Please sign in to comment.