Fix wrong ordering when moving bulk of pages

This commit is contained in:
Matias Griese
2015-12-10 11:25:14 +02:00
parent 6ea7fe9dba
commit 53f097c2b3

View File

@@ -2187,7 +2187,7 @@ class Page
// Handle all the other pages.
$page = $pages->get($path);
if ($page && $page->exists() && !$page->_original && $page->order() != $order+1) {
if ($page && $page->exists() && !$page->_action && $page->order() != $order+1) {
$page = $page->move($parent);
$page->order($order+1);
$page->save(false);
@@ -2210,7 +2210,6 @@ class Page
}
}
$this->_action = null;
$this->_original = null;
}