diff --git a/core/module/page/page.php b/core/module/page/page.php
index 17cbb7d3..9a672658 100644
--- a/core/module/page/page.php
+++ b/core/module/page/page.php
@@ -389,8 +389,9 @@ class page extends common {
$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
- if($hierarchyPageId === $this->getUrl(2)) {
+ // Ignore la page en cours de modification et les pages dans le menu extra
+ if($hierarchyPageId === $this->getUrl(2) ||
+ $this->getData(['page', $hierarchyPageId, 'extraPosition']) === false ) {
continue;
}
// Incrémente de +1 pour laisser la place à la position de la page en cours de modification
diff --git a/core/module/page/view/edit/edit.js.php b/core/module/page/view/edit/edit.js.php
index 703f2410..95f08152 100644
--- a/core/module/page/view/edit/edit.js.php
+++ b/core/module/page/view/edit/edit.js.php
@@ -240,6 +240,12 @@ $( document ).ready(function() {
if ($("#pageEditExtraPosition").val() == 1 ) {
var positionDOM = $("#pageEditPosition");
var positionInitial = getData(['page',$this->getUrl(2),"position"]); ?>;
+ console.log(positionInitial);
+ // La position précédente était dans le menu standard
+ if (positionInitial >= 2)
+ {
+ positionInitial = 0;
+ }
positionDOM.empty().append(
$("