Skip to content

Commit 53d861a

Browse files
author
Shikha Mishra
authored
Updated Text.php
1 parent b3d9a05 commit 53d861a

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)