Skip to content

Commit 5d44be9

Browse files
committed
Check attribute unique between same fields in magento commerce
1 parent 6cc7f89 commit 5d44be9

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
@@ -951,7 +951,7 @@ public function checkAttributeUniqueValue(AbstractAttribute $attribute, $object)
951951
'value' => trim($value),
952952
];
953953

954-
$entityIdField = $attributeBackend->getEntityIdField();
954+
$entityIdField = $object->getResource()->getLinkField();
955955
$select->from(
956956
$attributeBackend->getTable(),
957957
$entityIdField

0 commit comments

Comments
 (0)