mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-05-07 19:17:07 +02:00
Fix error in copying a root page
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user