Skip to content

Commit 80ceaa8

Browse files
committed
ACP2E-3486: Default values are not set for date and time attributes with products RestAPI
1 parent 71faf62 commit 80ceaa8

File tree

1 file changed

+1
-2
lines changed
  • app/code/Magento/Eav/Model/Entity/Attribute/Backend

1 file changed

+1
-2
lines changed

app/code/Magento/Eav/Model/Entity/Attribute/Backend/Datetime.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ public function beforeSave($object)
5050
}
5151

5252
if ($value === null) {
53-
//$value = $object->getData($attributeName);
54-
$value = $this->getDefaultValue();
53+
$value = $object->getData($attributeName);
5554
}
5655

5756
$object->setData($attributeName, $value);

0 commit comments

Comments
 (0)