Skip to content

Commit a9950cc

Browse files
author
Oleksii Korshenko
committed
MAGETWO-82952: Check attribute unique between same fields in magento commerce magento#11620
- Merge Pull Request magento#11620 from raumatbel/magento2:FR#CheckAttributeUniqueEE22 - Merged commits: 1. fbae2e2
2 parents 73c7ac2 + fbae2e2 commit a9950cc

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)