From 778c9d82126560980d6473a708cd45c8ee0ba330 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 19 Feb 2017 12:00:35 -0500 Subject: Allow people to remove missing automatic actions When an automatic action is installed from a plugin, if the plugin is removed the automatic could stay in the database if the user didn't remove manually the automatic action. --- app/Controller/ActionCreationController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'app/Controller/ActionCreationController.php') diff --git a/app/Controller/ActionCreationController.php b/app/Controller/ActionCreationController.php index 1629e68f..7fee58d1 100644 --- a/app/Controller/ActionCreationController.php +++ b/app/Controller/ActionCreationController.php @@ -59,7 +59,8 @@ class ActionCreationController extends BaseController $values = $this->request->getValues(); if (empty($values['action_name']) || empty($values['project_id']) || empty($values['event_name'])) { - return $this->create(); + $this->create(); + return; } $action = $this->actionManager->getAction($values['action_name']); @@ -72,7 +73,7 @@ class ActionCreationController extends BaseController $projects_list = $this->projectUserRoleModel->getActiveProjectsByUser($this->userSession->getId()); unset($projects_list[$project['id']]); - return $this->response->html($this->template->render('action_creation/params', array( + $this->response->html($this->template->render('action_creation/params', array( 'values' => $values, 'action_params' => $action_params, 'columns_list' => $this->columnModel->getList($project['id']), -- cgit v1.2.3