Skip to content

Commit fbae2e2

Browse files
committed
Check attribute unique between same fields in magento commerce
1 parent 4d26093 commit fbae2e2

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)