Skip to content

Commit

Permalink
Merge pull request #1 from AOEmedia/master
Browse files Browse the repository at this point in the history
Fixed Aoe_Eav_Model_Config::getEntityAttributeCodes() method for case when entity type doesn't have attributes (some custom one) or there are no attributes in attribute set
  • Loading branch information
Dmitriy Zavalkin committed May 13, 2013
2 parents b5a6966 + 972e541 commit 194e5e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/code/local/Aoe/Eav/Model/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,9 @@ public function getEntityAttributeCodes($entityType, $object = null)
}
Varien_Profiler::stop('EAV: ' . __METHOD__);

return $attributes;
// it might happen that entity type doesn't have attributes (some custom one) or
// there are no attributes in attribute set
return empty($attributes) ? array() : $attributes;
}

/**
Expand Down

0 comments on commit 194e5e9

Please sign in to comment.