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

Commit 51c51d7

Browse files
author
Oleksii Korshenko
committed
MAGETWO-82951: Check attribute unique between same fields in magento commerce [backport] #11622
- Merge Pull Request magento/magento2#11622 from raumatbel/magento2:FR#CheckAttributeUniqueEE - Merged commits: 1. 737a76b
2 parents 07ed4b2 + 737a76b commit 51c51d7

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)