diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-01-14 13:00:06 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-01-14 13:00:06 -0500 |
commit | fe1629e3ea1931d1075adbdc3e1d7d11e51b44ac (patch) | |
tree | a2cf57182ff9cadbc468b8d32187ce8032ecb5a0 | |
parent | 1f0fb64f9373fa360e9d697bcb47baca0cec452b (diff) |
Fix PHP notice in task creation form
-rw-r--r-- | app/Controller/TaskCreationController.php | 5 |
1 files changed, 1 insertions, 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)); |