diff --git a/app/code/Magento/Eav/Model/ResourceModel/Entity/Attribute/Option.php b/app/code/Magento/Eav/Model/ResourceModel/Entity/Attribute/Option.php index cd2e985e57ee8..79c277dcb6a82 100644 --- a/app/code/Magento/Eav/Model/ResourceModel/Entity/Attribute/Option.php +++ b/app/code/Magento/Eav/Model/ResourceModel/Entity/Attribute/Option.php @@ -44,8 +44,8 @@ public function addOptionValueToCollection($collection, $attribute, $valueExpr) ); $valueExpr = $connection->getCheckSql( "{$optionTable2}.value_id IS NULL", - "{$optionTable1}.value", - "{$optionTable2}.value" + "{$optionTable1}.option_id", + "{$optionTable2}.option_id" ); $collection->getSelect()->joinLeft(