Blog 5.4 bug création d'un article avec données de commentaire null

This commit is contained in:
Fred Tempez 2022-09-19 14:21:15 +02:00
parent 800818c9b0
commit 54cd7c5a7e
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@
class blog extends common { class blog extends common {
const VERSION = '5.3'; const VERSION = '5.4';
const REALNAME = 'Blog'; const REALNAME = 'Blog';
const DATADIRECTORY = ''; // Contenu localisé inclus par défaut (page.json et module.json) const DATADIRECTORY = ''; // Contenu localisé inclus par défaut (page.json et module.json)
@ -202,7 +202,7 @@ class blog extends common {
$this->getUrl(0), $this->getUrl(0),
'posts', 'posts',
$articleId, [ $articleId, [
'comment' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'comment']), 'comment' => [],
'content' => $this->getInput('blogAddContent', null), 'content' => $this->getInput('blogAddContent', null),
'picture' => $this->getInput('blogAddPicture', helper::FILTER_STRING_SHORT, true), 'picture' => $this->getInput('blogAddPicture', helper::FILTER_STRING_SHORT, true),
'hidePicture' => $this->getInput('blogAddHidePicture', helper::FILTER_BOOLEAN), 'hidePicture' => $this->getInput('blogAddHidePicture', helper::FILTER_BOOLEAN),