Skip to content

Commit f5b496c

Browse files
committed
Use the correct method to validate if attribute is required
1 parent 00aa808 commit f5b496c

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Eav/Model/Attribute/Data

1 file changed

+1
-1
lines changed

app/code/Magento/Eav/Model/Attribute/Data/Text.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function validateValue($value)
6767
$value = $this->getEntity()->getDataUsingMethod($attribute->getAttributeCode());
6868
}
6969

70-
if (!$attribute->isRequired() && empty($value)) {
70+
if (!$attribute->getIsRequired() && empty($value)) {
7171
return true;
7272
}
7373

0 commit comments

Comments
 (0)