Skip to content

Commit 47d3700

Browse files
committed
ACP2E-3453: Unable to Update Scheduled Update When Using Unique Custom Category Attribute
1 parent 915e8fe commit 47d3700

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/code/Magento/Eav/Model/Entity/Attribute/UniqueValidator.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ public function validate(
2323
$entityLinkField,
2424
array $entityIds
2525
) {
26-
if (isset($entityIds[0])) {
27-
return $entityIds[0] == $object->getData($entityLinkField);
26+
if ($entityIds) {
27+
// check for current and future updates
28+
return in_array($object->getData($entityLinkField), $entityIds);
2829
}
2930
return true;
3031
}

0 commit comments

Comments
 (0)