Skip to content

Commit 215c783

Browse files
Specify the table when adding field to filter
Specify the table when adding field to filter for the collection Eav/Model/ResourceModel/Entity/Attribute/Option/Collection.php
1 parent dc5bd24 commit 215c783

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Eav/Model/ResourceModel/Entity/Attribute/Option

1 file changed

+1
-1
lines changed

app/code/Magento/Eav/Model/ResourceModel/Entity/Attribute/Option/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ protected function _construct()
7878
*/
7979
public function setAttributeFilter($setId)
8080
{
81-
return $this->addFieldToFilter('attribute_id', $setId);
81+
return $this->addFieldToFilter('main_table.attribute_id', $setId);
8282
}
8383

8484
/**

0 commit comments

Comments
 (0)