From d84f94817b8536efcdfc5a6437e95bbf7ed29f06 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Thu, 1 Aug 2024 19:17:29 +0200 Subject: [PATCH] =?UTF-8?q?13.3.06=20Mise=20=C3=A0=20jour=20module=20blog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGES.md | 3 ++- module/blog/blog.php | 4 ++-- module/blog/changes.md | 2 ++ module/blog/enum.json | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 2b70533c..9358f6e7 100755 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,8 +1,9 @@ # Notes de mises à jour ## Versions 13.3.06 -** Correction : ** +** Corrections : ** - Mise à jour du module News 5.9, taille d'un bouton. +- Mise à jour du module Blog 7.10, bloque la soumission d'un commentaire vide. ## Versions 13.3.05 ** Correction : ** diff --git a/module/blog/blog.php b/module/blog/blog.php index 260b422f..010a5d58 100755 --- a/module/blog/blog.php +++ b/module/blog/blog.php @@ -16,7 +16,7 @@ class blog extends common { - const VERSION = '7.9'; + const VERSION = '7.10'; const REALNAME = 'Blog'; const DELETE = true; const UPDATE = '0.0'; @@ -757,7 +757,7 @@ class blog extends common } // Crée le commentaire $commentId = helper::increment(uniqid(), $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(1), 'comment'])); - $content = $this->getInput('blogArticleContent', false); + $content = $this->getInput('blogArticleContent', null, true); $this->setData([ 'module', $this->getUrl(0), 'posts', $this->getUrl(1), diff --git a/module/blog/changes.md b/module/blog/changes.md index d16cc773..2b12fb5b 100755 --- a/module/blog/changes.md +++ b/module/blog/changes.md @@ -1,4 +1,6 @@ +# Versions 7.10 +- Empêche la validation d'un commentaire lorsque le contenu est vide. # Versions 7.8 - 7.9 - Le flux RSS ne fonctionne pas si les méta de la page sont vides. # Version 7.7 diff --git a/module/blog/enum.json b/module/blog/enum.json index 418671e9..686560ce 100644 --- a/module/blog/enum.json +++ b/module/blog/enum.json @@ -1 +1 @@ -{"name":"blog","realName":"Blog","version":"7.2","update":"0.0","delete":true,"dataDirectory":""} \ No newline at end of file +{"name":"blog","realName":"Blog","version":"7.10","update":"0.0","delete":true,"dataDirectory":""} \ No newline at end of file