We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 915e8fe commit 47d3700Copy full SHA for 47d3700
app/code/Magento/Eav/Model/Entity/Attribute/UniqueValidator.php
@@ -23,8 +23,9 @@ public function validate(
23
$entityLinkField,
24
array $entityIds
25
) {
26
- if (isset($entityIds[0])) {
27
- return $entityIds[0] == $object->getData($entityLinkField);
+ if ($entityIds) {
+ // check for current and future updates
28
+ return in_array($object->getData($entityLinkField), $entityIds);
29
}
30
return true;
31
0 commit comments