From 44b41c4cc102c61afc6d22fc0351cec4a8e0f072 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Tempez?= Date: Fri, 25 Feb 2022 20:45:42 +0100 Subject: [PATCH] =?UTF-8?q?proprit=C3=A9=20ExtraProsition=20false=20par=20?= =?UTF-8?q?d=C3=A9faut?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/include/update.inc.php | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/core/include/update.inc.php b/core/include/update.inc.php index c0229786..ebe8a045 100644 --- a/core/include/update.inc.php +++ b/core/include/update.inc.php @@ -790,4 +790,21 @@ if ($this->getData(['core', 'dataVersion']) < 11300) { // Mise à jour $this->setData(['core', 'dataVersion', 11300]); -} \ No newline at end of file +} +// Version 11.3.03 +if ($this->getData(['core', 'dataVersion']) < 11303) { + + // Ajout de la variable shortTitle basée sur Title + foreach ($this->getHierarchy(null,null,null) as $parentKey=>$parentValue) { + $pageList [] = $parentKey; + foreach ($parentValue as $childKey) { + $pageList [] = $childKey; + } + } + foreach ($pageList as $parentKey => $parent) { + $this->setData(['page', $parent, 'extraPosition', false]); + } + + // Mise à jour + $this->setData(['core', 'dataVersion', 11303]); +}