diff --git a/module/blog/blog.php b/module/blog/blog.php index dbedf0d9..251fa1a3 100755 --- a/module/blog/blog.php +++ b/module/blog/blog.php @@ -350,7 +350,8 @@ class blog extends common { 'state' => $this->getInput('blogEditState', helper::FILTER_BOOLEAN), 'title' => $this->getInput('blogEditTitle', helper::FILTER_STRING_SHORT, true), 'userId' => $newuserid, - 'maxlengthcomment' => $this->getInput('blogEditlength', null) + 'maxlengthcomment' => $this->getInput('blogEditLength'), + 'commentApprove' => $this->getInput('blogEditCommentApprove') ]]); // Supprime l'ancien article if($articleId !== $this->getUrl(2)) { diff --git a/module/blog/view/edit/edit.php b/module/blog/view/edit/edit.php index bd27ed4b..8cf5a56e 100755 --- a/module/blog/view/edit/edit.php +++ b/module/blog/view/edit/edit.php @@ -74,10 +74,17 @@ 'value' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'content']) ]); ?>