Skip to content

Commit

Permalink
magento-engcom/magento2ce#1358: Static tests fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ishakhsuvarov committed Feb 7, 2018
1 parent 8f1d8e7 commit 5d084ce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ public function validate($object)
}

if ($attribute->getIsUnique()) {
if (!$attribute->getEntity()->checkAttributeUniqueValue($attribute, $object)) {
if (!$attribute->getEntity()->checkAttributeUniqueValue($attribute, $object)) {
throw new LocalizedException(__('The value of attribute "%1" must be unique', $label));
}
}
Expand Down

0 comments on commit 5d084ce

Please sign in to comment.