Skip to content

Commit dac90d5

Browse files
🔃 [EngCom] Public Pull Requests - 2.1-develop
Accepted Public Pull Requests: - #14596: Specify the table when adding field to filter (by @PierreLeMaguer) Fixed GitHub Issues: - #14572: Specify the table when adding field to filter for the collection Eav/Model/ResourceModel/Entity/Attribute/Option/Collection.php (reported by @PierreLeMaguer) has been fixed in #14596 by @PierreLeMaguer in 2.1-develop branch Related commits: 1. f02dae8
2 parents 85ee370 + 7610037 commit dac90d5

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)