form 3.9 pages orphelines dans la redirection

This commit is contained in:
Fred Tempez 2023-04-11 13:08:40 +02:00
parent 4e6f05fd29
commit b5911f609a
3 changed files with 5 additions and 3 deletions

View File

@ -1,3 +1,5 @@
# Version 3.9
- Redirection des pages orphelines
# Version 3.8 # Version 3.8
- Encode UTF-8 de l'objet du message, et des noms des champs. - Encode UTF-8 de l'objet du message, et des noms des champs.
# Version 3.7 # Version 3.7

View File

@ -1 +1 @@
{"name":"form","realName":"Formulaire","version":"3.7","update":"0.0","delete":true,"dataDirectory":""} {"name":"form","realName":"Formulaire","version":"3.9","update":"0.0","delete":true,"dataDirectory":""}

View File

@ -17,7 +17,7 @@
class form extends common class form extends common
{ {
const VERSION = '3.8'; const VERSION = '3.9';
const REALNAME = 'Formulaire'; const REALNAME = 'Formulaire';
const DATADIRECTORY = ''; // Contenu localisé inclus par défaut (page.json et module.json) const DATADIRECTORY = ''; // Contenu localisé inclus par défaut (page.json et module.json)
@ -207,7 +207,7 @@ class form extends common
]); ]);
} else { } else {
// Liste des pages // 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']); self::$pages[$parentPageId] = $this->getData(['page', $parentPageId, 'title']);
foreach ($childrenPageIds as $childKey) { foreach ($childrenPageIds as $childKey) {
self::$pages[$childKey] = ' » ' . $this->getData(['page', $childKey, 'title']); self::$pages[$childKey] = ' » ' . $this->getData(['page', $childKey, 'title']);