mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-01-24 08:19:57 +01:00
Regression: Fixed parent field for old pages
This commit is contained in:
@@ -435,7 +435,7 @@ class AdminPlugin extends Plugin
|
||||
$post = $this->grav['uri']->post();
|
||||
|
||||
// Handle tasks.
|
||||
$this->admin->task = $task = $this->grav['task'];
|
||||
$this->admin->task = $task = $this->grav['task'] ?? $this->grav['action'];
|
||||
if ($task) {
|
||||
$this->initializeController($task, $post);
|
||||
} elseif ($this->template === 'logs' && $this->route) {
|
||||
|
||||
Reference in New Issue
Block a user