We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58ae313 commit 3b2903eCopy full SHA for 3b2903e
app/code/Magento/Eav/Model/Entity/Attribute/Backend/Datetime.php
@@ -57,11 +57,14 @@ public function beforeSave($object)
57
}
58
59
$defaultValue = $this->getDefaultValue();
60
- if ($object->getData($attributeName) === null && $defaultValue !== null) {
+ if ($object->getData($attributeName) === null
61
+ && $defaultValue !== null
62
+ && !$object->hasData($attributeName)) {
63
$object->setData($attributeName, $defaultValue);
64
$object->setData($attributeName . '_is_formated', true);
65
66
67
+
68
return $this;
69
70
0 commit comments