From cbe606cef560a711f6ae440720a80c37cecc4ea8 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 8 Oct 2016 09:55:31 -0400 Subject: Always apply merge hooks in task creation controller --- app/Controller/TaskCreationController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'app/Controller/TaskCreationController.php') 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; } -- cgit v1.2.3