summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-01-14 13:00:06 -0500
committerFrederic Guillot <fred@kanboard.net>2017-01-14 13:00:06 -0500
commitfe1629e3ea1931d1075adbdc3e1d7d11e51b44ac (patch)
treea2cf57182ff9cadbc468b8d32187ce8032ecb5a0
parent1f0fb64f9373fa360e9d697bcb47baca0cec452b (diff)
Fix PHP notice in task creation form
-rw-r--r--app/Controller/TaskCreationController.php5
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));