Skip to content

Commit

Permalink
Merge pull request #859 from kabel/patch-2
Browse files Browse the repository at this point in the history
Fix email template creation date not being persisted (MAGETWO-32152)
  • Loading branch information
maksek committed Dec 25, 2014
2 parents b87a3fa + 0fac107 commit 7e77673
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/Magento/Email/Model/Resource/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function checkCodeUsage(\Magento\Email\Model\Template $template)
protected function _beforeSave(AbstractModel $object)
{
if ($object->isObjectNew()) {
$object->setCreatedAt($this->dateTime->formatDate(true));
$object->setAddedAt($this->dateTime->formatDate(true));
}
$object->setModifiedAt($this->dateTime->formatDate(true));
$object->setTemplateType((int)$object->getTemplateType());
Expand Down

0 comments on commit 7e77673

Please sign in to comment.