Fix error in copying a root page

This commit is contained in:
Flavio Copes
2015-08-03 11:47:32 +02:00
parent 1d2fc734ec
commit 3584edac1d

View File

@@ -883,7 +883,7 @@ class AdminController
$data = $this->post;
// Find new parent page in order to build the path.
$route = trim($data['route'], '/');
$route = isset($data['route']) ? trim($data['route'], '/') : '';
$parent = empty($route) ? $pages->root() : $pages->dispatch($data['route'], true);
// And then get the current page.
$page = $this->admin->page(true);