From 2dae98c1966cbe6ca9d781a3f0180ddecd3de2ff Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Thu, 19 Sep 2019 22:20:05 +0300 Subject: [PATCH] Regression: Fixed parent field for old pages --- admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin.php b/admin.php index ff89c51c..f486b9fc 100644 --- a/admin.php +++ b/admin.php @@ -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) {