Skip to content

Commit 41d7ede

Browse files
author
Oleksandr Karpenko
committed
MAGETWO-49820: Can't register customer if customer attribute is required but not visible (#3457)
1 parent c221e59 commit 41d7ede

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Eav/Model/Entity/Attribute/AbstractAttribute.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ protected function _getDefaultSourceModel()
594594
public function isValueEmpty($value)
595595
{
596596
/** @var array $emptyStringTypes list of attribute types that treat empty string as a possible value */
597-
$emptyStringTypes = ['int', 'decimal', 'datetime', 'varchar', 'text'];
597+
$emptyStringTypes = ['int', 'decimal', 'datetime', 'varchar', 'text', 'static'];
598598
$attributeType = $this->getBackend()->getType();
599599
return (is_array($value) && count($value) == 0)
600600
|| $value === null

0 commit comments

Comments
 (0)