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 00748ce commit 2946fcbCopy full SHA for 2946fcb
app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php
@@ -160,9 +160,11 @@ protected function _prepareStaticFields()
160
protected function _initSelect()
161
{
162
$this->getSelect()->from(['e' => $this->getEntity()->getEntityTable()]);
163
- if ($this->getEntity()->getTypeId()) {
+
164
+ if ($this->getEntity()->getEntityTable() === Mage_Eav_Model_Entity::DEFAULT_ENTITY_TABLE && $this->getEntity()->getTypeId()) {
165
$this->addAttributeToFilter('entity_type_id', $this->getEntity()->getTypeId());
166
}
167
168
return $this;
169
170
0 commit comments