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

Commit 525a2c7

Browse files
MAGETWO-82952: Check attribute unique between same fields in magento commerce #11620
2 parents 918d19a + a9950cc commit 525a2c7

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)