From 2778829df66a8821a579c2cabef8e8012c7b7426 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Thu, 20 Oct 2016 11:46:14 -0400 Subject: [PATCH] Fix issue processwire/processwire-issues#47 --- .../Process/ProcessPageList/ProcessPageListActions.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wire/modules/Process/ProcessPageList/ProcessPageListActions.php b/wire/modules/Process/ProcessPageList/ProcessPageListActions.php index 8602dfd6..687612f9 100644 --- a/wire/modules/Process/ProcessPageList/ProcessPageListActions.php +++ b/wire/modules/Process/ProcessPageList/ProcessPageListActions.php @@ -201,13 +201,14 @@ class ProcessPageListActions extends Wire { } $actions = $this->getExtraActions($page); + $success = false; + $message = ''; + $remove = false; + $refreshChildren = 0; if(isset($actions[$action]) && $page->editable()) { $success = true; $needSave = true; - $message = ''; - $remove = false; - $refreshChildren = 0; switch($action) { case 'pub':