From 215c7834df8bf156ea307504a28874d1b96fc6ac Mon Sep 17 00:00:00 2001 From: PierreLeMaguer Date: Mon, 9 Apr 2018 13:33:41 +0200 Subject: [PATCH] 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 --- .../Model/ResourceModel/Entity/Attribute/Option/Collection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/Eav/Model/ResourceModel/Entity/Attribute/Option/Collection.php b/app/code/Magento/Eav/Model/ResourceModel/Entity/Attribute/Option/Collection.php index d6246c9072263..78351020064cf 100644 --- a/app/code/Magento/Eav/Model/ResourceModel/Entity/Attribute/Option/Collection.php +++ b/app/code/Magento/Eav/Model/ResourceModel/Entity/Attribute/Option/Collection.php @@ -78,7 +78,7 @@ protected function _construct() */ public function setAttributeFilter($setId) { - return $this->addFieldToFilter('attribute_id', $setId); + return $this->addFieldToFilter('main_table.attribute_id', $setId); } /**