ne pas actualiser les positions des pages orphelines

This commit is contained in:
Fred Tempez 2021-11-05 15:13:16 +01:00
parent 354c9d5d7e
commit bd2fd89c4f
1 changed files with 1 additions and 1 deletions

View File

@ -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