From aa318357fa19f8875174bd603a7e2352f05da909 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Sun, 13 Dec 2020 17:44:10 +0100 Subject: [PATCH 1/2] typo --- CHANGES.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 8438dffd..b6fcabbf 100755 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,7 +4,7 @@ ## Version 10.3.11 Modification : - Message sur l'utilisation des cookies -Coorection : +Correction : - Recherche inopérante dans les articles des blogs. ## Version 10.3.10 From 185a3993db351fa98a9c66a120b50d401cd10b85 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Mon, 14 Dec 2020 12:34:02 +0100 Subject: [PATCH 2/2] bug search --- module/search/search.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/module/search/search.php b/module/search/search.php index b2a41f07..4ad083e5 100755 --- a/module/search/search.php +++ b/module/search/search.php @@ -141,8 +141,8 @@ class search extends common { // Articles d'une sous-page blog if ($this->getData(['page', $childId, 'moduleId']) === 'blog') { - foreach($this->getData(['module',$childId]) as $articleId => $article) { - if($this->getData(['module',$childId,$articleId,'state']) === true) { + foreach($this->getData(['module',$childId,'posts']) as $articleId => $article) { + if($this->getData(['module',$childId,'posts',$articleId,'state']) === true) { $url = $childId . '/' . $articleId; $titre = $article['title']; $contenu = ' ' . $titre . ' ' . $article['content']; @@ -158,8 +158,8 @@ class search extends common { // Articles d'un blog if ($this->getData(['page', $parentId, 'moduleId']) === 'blog' ) { - foreach($this->getData(['module',$parentId]) as $articleId => $article) { - if($this->getData(['module',$parentId,$articleId,'state']) === true) + foreach($this->getData(['module',$parentId,'posts']) as $articleId => $article) { + if($this->getData(['module',$parentId,'posts',$articleId,'state']) === true) { $url = $parentId. '/' . $articleId; $titre = $article['title'];