From b5911f609ae84764bc34e249424c34e67c57a9b4 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Tue, 11 Apr 2023 13:08:40 +0200 Subject: [PATCH] form 3.9 pages orphelines dans la redirection --- module/form/changes.md | 2 ++ module/form/enum.json | 2 +- module/form/form.php | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/module/form/changes.md b/module/form/changes.md index 84e094cc..ebfb44de 100644 --- a/module/form/changes.md +++ b/module/form/changes.md @@ -1,3 +1,5 @@ +# Version 3.9 +- Redirection des pages orphelines # Version 3.8 - Encode UTF-8 de l'objet du message, et des noms des champs. # Version 3.7 diff --git a/module/form/enum.json b/module/form/enum.json index a3efadf2..6a438a67 100644 --- a/module/form/enum.json +++ b/module/form/enum.json @@ -1 +1 @@ -{"name":"form","realName":"Formulaire","version":"3.7","update":"0.0","delete":true,"dataDirectory":""} \ No newline at end of file +{"name":"form","realName":"Formulaire","version":"3.9","update":"0.0","delete":true,"dataDirectory":""} \ No newline at end of file diff --git a/module/form/form.php b/module/form/form.php index 615692ac..22c62aa3 100644 --- a/module/form/form.php +++ b/module/form/form.php @@ -17,7 +17,7 @@ class form extends common { - const VERSION = '3.8'; + const VERSION = '3.9'; const REALNAME = 'Formulaire'; const DATADIRECTORY = ''; // Contenu localisé inclus par défaut (page.json et module.json) @@ -207,7 +207,7 @@ class form extends common ]); } else { // Liste des pages - foreach ($this->getHierarchy(null, true, false) as $parentPageId => $childrenPageIds) { + foreach ($this->getHierarchy(null, false, false) as $parentPageId => $childrenPageIds) { self::$pages[$parentPageId] = $this->getData(['page', $parentPageId, 'title']); foreach ($childrenPageIds as $childKey) { self::$pages[$childKey] = ' » ' . $this->getData(['page', $childKey, 'title']);