From 5d084ce7979f07e7b1d6ac9980be13fdd2a378cd Mon Sep 17 00:00:00 2001 From: Ievgen Shakhsuvarov Date: Wed, 7 Feb 2018 12:39:09 +0200 Subject: [PATCH] magento-engcom/magento2ce#1358: Static tests fix --- .../Eav/Model/Entity/Attribute/Backend/AbstractBackend.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/Eav/Model/Entity/Attribute/Backend/AbstractBackend.php b/app/code/Magento/Eav/Model/Entity/Attribute/Backend/AbstractBackend.php index 206bff163f201..d384c395144a0 100644 --- a/app/code/Magento/Eav/Model/Entity/Attribute/Backend/AbstractBackend.php +++ b/app/code/Magento/Eav/Model/Entity/Attribute/Backend/AbstractBackend.php @@ -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)); } }