Skip to content

Commit

Permalink
MAGETWO-82951: Check attribute unique between same fields in magento …
Browse files Browse the repository at this point in the history
…commerce [backport] #11622
  • Loading branch information
ishakhsuvarov committed Nov 6, 2017
2 parents 6912631 + 51c51d7 commit 81d99b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/Magento/Eav/Model/Entity/AbstractEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,7 @@ public function checkAttributeUniqueValue(AbstractAttribute $attribute, $object)
'value' => trim($value),
];

$entityIdField = $attributeBackend->getEntityIdField();
$entityIdField = $object->getResource()->getLinkField();
$select->from(
$attributeBackend->getTable(),
$entityIdField
Expand Down

0 comments on commit 81d99b5

Please sign in to comment.