From 2c613b7186180da4627d2403a69865c5aa30c787 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Fri, 5 Nov 2021 15:13:52 +0100 Subject: [PATCH] ne pas actualiser les positions des pages orphelines --- core/module/page/page.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/module/page/page.php b/core/module/page/page.php index 5bc2a94d..07c153e6 100644 --- a/core/module/page/page.php +++ b/core/module/page/page.php @@ -377,7 +377,7 @@ class page extends common { } // Si la page est une page enfant, actualise les positions des autres enfants du parent, sinon actualise les pages sans parents $lastPosition = 1; - $hierarchy = $this->getInput('pageEditParentPageId') ? $this->getHierarchy($this->getInput('pageEditParentPageId'),null) : array_keys($this->getHierarchy()); + $hierarchy = $this->getInput('pageEditParentPageId') ? $this->getHierarchy($this->getInput('pageEditParentPageId')) : array_keys($this->getHierarchy()); $position = $this->getInput('pageEditPosition', helper::FILTER_INT); foreach($hierarchy as $hierarchyPageId) { // Ignore la page en cours de modification