From fe1629e3ea1931d1075adbdc3e1d7d11e51b44ac Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 14 Jan 2017 13:00:06 -0500 Subject: Fix PHP notice in task creation form --- app/Controller/TaskCreationController.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/Controller/TaskCreationController.php b/app/Controller/TaskCreationController.php index ec53e211..20457568 100644 --- a/app/Controller/TaskCreationController.php +++ b/app/Controller/TaskCreationController.php @@ -24,10 +24,7 @@ class TaskCreationController extends BaseController { $project = $this->getProject(); $swimlanes_list = $this->swimlaneModel->getList($project['id'], false, true); - - if (empty($values)) { - $values = $this->prepareValues($swimlanes_list); - } + $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)); -- cgit v1.2.3