Fix page saving in expert mode (/ != /home)

This commit is contained in:
Matias Griese
2014-09-26 14:10:32 +03:00
parent c501097a78
commit 0017d05493
2 changed files with 3 additions and 2 deletions

View File

@@ -282,7 +282,7 @@ class AdminController
// Find new parent page in order to build the path.
$route = !isset($data['route']) ? dirname($this->admin->route) : $data['route'];
$parent = $route ? $pages->dispatch($route, true) : $pages->root();
$parent = $route && $route != '/' ? $pages->dispatch($route, true) : $pages->root();
$obj = $this->admin->page(true);
// Change parent if needed and initialize move (might be needed also on ordering/folder change).