diff --git a/module/news/news.php b/module/news/news.php index 16b31bef..46f4042a 100755 --- a/module/news/news.php +++ b/module/news/news.php @@ -139,6 +139,7 @@ class news extends common { $this->setData(['module', $this->getUrl(0),'posts', $newsId, [ 'content' => $this->getInput('newsAddContent', null), 'publishedOn' => $this->getInput('newsAddPublishedOn', helper::FILTER_DATETIME, true), + 'publishedOff' => $this->getInput('newsAddPublishedOff', helper::FILTER_DATETIME), 'state' => $this->getInput('newsAddState', helper::FILTER_BOOLEAN), 'title' => $this->getInput('newsAddTitle', helper::FILTER_STRING_SHORT, true), 'userId' => $this->getInput('newsAddUserId', helper::FILTER_ID, true) diff --git a/module/news/view/add/add.php b/module/news/view/add/add.php index 94487f01..eff462e1 100755 --- a/module/news/view/add/add.php +++ b/module/news/view/add/add.php @@ -41,19 +41,26 @@