Skip to content

Commit 7e77673

Browse files
author
maksek
committed
Merge pull request #859 from kabel/patch-2
Fix email template creation date not being persisted (MAGETWO-32152)
2 parents b87a3fa + 0fac107 commit 7e77673

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Email/Model/Resource/Template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public function checkCodeUsage(\Magento\Email\Model\Template $template)
9999
protected function _beforeSave(AbstractModel $object)
100100
{
101101
if ($object->isObjectNew()) {
102-
$object->setCreatedAt($this->dateTime->formatDate(true));
102+
$object->setAddedAt($this->dateTime->formatDate(true));
103103
}
104104
$object->setModifiedAt($this->dateTime->formatDate(true));
105105
$object->setTemplateType((int)$object->getTemplateType());

0 commit comments

Comments
 (0)