summaryrefslogtreecommitdiff
path: root/app/Controller/ActionCreationController.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-02-19 12:00:35 -0500
committerFrederic Guillot <fred@kanboard.net>2017-02-19 12:00:35 -0500
commit778c9d82126560980d6473a708cd45c8ee0ba330 (patch)
tree21b0e16b87a30d8275d62b14d07a39b604a1b512 /app/Controller/ActionCreationController.php
parent23ff360d6232bbaf397405f0ac048f4200cea4ad (diff)
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.
Diffstat (limited to 'app/Controller/ActionCreationController.php')
-rw-r--r--app/Controller/ActionCreationController.php5
1 files changed, 3 insertions, 2 deletions
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']),