Regression: Fixed parent field for old pages

This commit is contained in:
Matias Griese
2019-09-19 22:20:05 +03:00
parent 0a1ec11a0a
commit 2dae98c196

View File

@@ -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) {