From bd2fd89c4fd8d9229d02447bbfea4812209a0283 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Fri, 5 Nov 2021 15:13:16 +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 edf184e3..ae3924a2 100644 --- a/core/module/page/page.php +++ b/core/module/page/page.php @@ -378,7 +378,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