Skip to content

Commit

Permalink
Use the correct method to validate if attribute is required
Browse files Browse the repository at this point in the history
  • Loading branch information
arnoudhgz committed Oct 13, 2018
1 parent 00aa808 commit f5b496c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/Magento/Eav/Model/Attribute/Data/Text.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function validateValue($value)
$value = $this->getEntity()->getDataUsingMethod($attribute->getAttributeCode());
}

if (!$attribute->isRequired() && empty($value)) {
if (!$attribute->getIsRequired() && empty($value)) {
return true;
}

Expand Down

0 comments on commit f5b496c

Please sign in to comment.