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 80ceaa8 commit 100e315Copy full SHA for 100e315
app/code/Magento/Eav/Model/Entity/Attribute/Backend/Datetime.php
@@ -1,9 +1,8 @@
1
<?php
2
/**
3
- * Copyright © Magento, Inc. All rights reserved.
4
- * See COPYING.txt for license details.
+ * Copyright 2011 Adobe
+ * All Rights Reserved.
5
*/
6
-
7
namespace Magento\Eav\Model\Entity\Attribute\Backend;
8
9
@@ -58,7 +57,7 @@ public function beforeSave($object)
58
57
}
59
60
$defaultValue = $this->getDefaultValue();
61
- if (is_null($object->getData($attributeName)) && $defaultValue !== null) {
+ if ($object->getData($attributeName) === null && $defaultValue !== null) {
62
$object->setData($attributeName, $defaultValue);
63
$object->setData($attributeName . '_is_formated', true);
64
0 commit comments