From fe076220428db65c0e6f966a91c640f4f3cc4bc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Tempez?= Date: Fri, 10 Jun 2022 18:15:49 +0200 Subject: [PATCH] 11504 Bug dans le module de recherche --- CHANGES.md | 3 ++- module/search/search.php | 7 +++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 43e3ecdf..d53ed779 100755 --- a/CHANGES.md +++ b/CHANGES.md @@ -3,7 +3,8 @@ < ## Version 11.5.04 ### Corrections : -- Bug de sélection d'un module absent. +- Edition d'une page : bug de sélection d'un module absent. +- Rechercher dans le site : impossiblilité de rechercher dans le contenu des moduless (news, blog et download). ## Version 11.5.03 ### Correction : diff --git a/module/search/search.php b/module/search/search.php index 0c46699f..45ae858d 100644 --- a/module/search/search.php +++ b/module/search/search.php @@ -254,7 +254,7 @@ class search extends common { } // Articles d'une sous-page blog ou de news - if ( $this->getData([ 'module', $childId, 'posts', 'content']) + if ( $this->getData([ 'module', $childId, 'posts']) ) { foreach($this->getData(['module',$childId,'posts']) as $articleId => $article) { if($this->getData(['module',$childId,'posts',$articleId,'state']) === true) { @@ -272,8 +272,8 @@ class search extends common { } // Articles d'un blog ou de news - if ( $this->getData([ 'module', $parentId, 'posts', 'content']) - ) { + if ( $this->getData([ 'module', $parentId, 'posts']) + ) { foreach($this->getData(['module',$parentId,'posts']) as $articleId => $article) { if($this->getData(['module',$parentId,'posts',$articleId,'state']) === true) @@ -289,7 +289,6 @@ class search extends common { } } } - // Message de synthèse de la recherche if (count($result) === 0) { self::$resultTitle = 'Aucun résultat';