Skip to content
This repository has been archived by the owner on Jan 22, 2022. It is now read-only.

fix: save post wthout date #214

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Controller/Adminhtml/Post/Save.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ public function execute()
if (!$data['is_short_content']) {
$model->setShortContent('');
}
if (!$data[PostInterface::CREATED_AT]) {
$model->setCreatedAt(date('Y-m-d H:i:s'));
}

try {
if ($this->getRequest()->getParam('isAjax')) {
Expand Down