summaryrefslogtreecommitdiff
path: root/app/Controller/TaskCreationController.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-10-08 09:55:31 -0400
committerFrederic Guillot <fred@kanboard.net>2016-10-08 09:55:31 -0400
commitcbe606cef560a711f6ae440720a80c37cecc4ea8 (patch)
treedd2a4c14a32a80791fff982d7834dcacc33ea124 /app/Controller/TaskCreationController.php
parentfe56fd66f49ecd2dc40d2983fa4622a14226aefd (diff)
Always apply merge hooks in task creation controller
Diffstat (limited to 'app/Controller/TaskCreationController.php')
-rw-r--r--app/Controller/TaskCreationController.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/Controller/TaskCreationController.php b/app/Controller/TaskCreationController.php
index c754b029..ec53e211 100644
--- a/app/Controller/TaskCreationController.php
+++ b/app/Controller/TaskCreationController.php
@@ -29,6 +29,9 @@ class TaskCreationController extends BaseController
$values = $this->prepareValues($swimlanes_list);
}
+ $values = $this->hook->merge('controller:task:form:default', $values, array('default_values' => $values));
+ $values = $this->hook->merge('controller:task-creation:form:default', $values, array('default_values' => $values));
+
$this->response->html($this->template->render('task_creation/show', array(
'project' => $project,
'errors' => $errors,
@@ -125,8 +128,6 @@ class TaskCreationController extends BaseController
'owner_id' => $this->userSession->getId(),
);
- $values = $this->hook->merge('controller:task:form:default', $values, array('default_values' => $values));
- $values = $this->hook->merge('controller:task-creation:form:default', $values, array('default_values' => $values));
return $values;
}