11504 Bug dans le module de recherche

This commit is contained in:
Fred Tempez 2022-06-10 18:15:49 +02:00
parent b06f855ffc
commit fe07622042
2 changed files with 5 additions and 5 deletions

View File

@ -3,7 +3,8 @@
< <
## Version 11.5.04 ## Version 11.5.04
### Corrections : ### 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 ## Version 11.5.03
### Correction : ### Correction :

View File

@ -254,7 +254,7 @@ class search extends common {
} }
// Articles d'une sous-page blog ou de news // 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) { foreach($this->getData(['module',$childId,'posts']) as $articleId => $article) {
if($this->getData(['module',$childId,'posts',$articleId,'state']) === true) { if($this->getData(['module',$childId,'posts',$articleId,'state']) === true) {
@ -272,8 +272,8 @@ class search extends common {
} }
// Articles d'un blog ou de news // 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) { foreach($this->getData(['module',$parentId,'posts']) as $articleId => $article) {
if($this->getData(['module',$parentId,'posts',$articleId,'state']) === true) if($this->getData(['module',$parentId,'posts',$articleId,'state']) === true)
@ -289,7 +289,6 @@ class search extends common {
} }
} }
} }
// Message de synthèse de la recherche // Message de synthèse de la recherche
if (count($result) === 0) { if (count($result) === 0) {
self::$resultTitle = 'Aucun résultat'; self::$resultTitle = 'Aucun résultat';