Skip to content

Commit ebc2216

Browse files
ENGCOM-3814: Fixed issue #20030 :Customer EAV Decimal Attribute required allow 0 #20130
- Merge Pull Request #20130 from opencommerce/magento2:2.3developPRnew - Merged commits: 1. 53d861a
2 parents 6b69fa1 + 53d861a commit ebc2216

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
@@ -72,7 +72,7 @@ public function validateValue($value)
7272
return true;
7373
}
7474

75-
if (empty($value) && $value !== '0') {
75+
if (empty($value) && $value !== '0' && $attribute->getDefaultValue() == NULL) {
7676
$label = __($attribute->getStoreLabel());
7777
$errors[] = __('"%1" is a required value.', $label);
7878
}

0 commit comments

Comments
 (0)