Skip to content

Commit

Permalink
Update app/code/core/Mage/Eav/Model/Attribute/Data/Text.php
Browse files Browse the repository at this point in the history
  • Loading branch information
sreichel authored Jan 21, 2025
1 parent 902b65f commit cc7c21e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/core/Mage/Eav/Model/Attribute/Data/Text.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function validateValue($value)
$value = $this->getEntity()->getDataUsingMethod($attribute->getAttributeCode());
}

if ($attribute->getIsRequired() && strlen((string) $value) === 0) {
if ($attribute->getIsRequired() && (string) $value === '') {
$errors[] = Mage::helper('eav')->__('"%s" is a required value.', $label);
}

Expand Down

0 comments on commit cc7c21e

Please sign in to comment.