Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 81d99b5

Browse files
MAGETWO-82951: Check attribute unique between same fields in magento commerce [backport] #11622
2 parents 6912631 + 51c51d7 commit 81d99b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Eav/Model/Entity/AbstractEntity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ public function checkAttributeUniqueValue(AbstractAttribute $attribute, $object)
908908
'value' => trim($value),
909909
];
910910

911-
$entityIdField = $attributeBackend->getEntityIdField();
911+
$entityIdField = $object->getResource()->getLinkField();
912912
$select->from(
913913
$attributeBackend->getTable(),
914914
$entityIdField

0 commit comments

Comments
 (0)