summaryrefslogtreecommitdiff
path: root/app/Controller
diff options
context:
space:
mode:
Diffstat (limited to 'app/Controller')
-rw-r--r--app/Controller/Task.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/Controller/Task.php b/app/Controller/Task.php
index 1296204a..ace40a01 100644
--- a/app/Controller/Task.php
+++ b/app/Controller/Task.php
@@ -93,11 +93,12 @@ class Task extends Base
{
$project = $this->getProject();
$method = $this->request->isAjax() ? 'render' : 'layout';
+ $swimlanes_list = $this->swimlane->getList($project['id']);
if (empty($values)) {
$values = array(
- 'swimlane_id' => $this->request->getIntegerParam('swimlane_id'),
+ 'swimlane_id' => $this->request->getIntegerParam('swimlane_id', key($swimlanes_list)),
'column_id' => $this->request->getIntegerParam('column_id'),
'color_id' => $this->request->getStringParam('color_id'),
'owner_id' => $this->request->getIntegerParam('owner_id'),
@@ -114,6 +115,7 @@ class Task extends Base
'users_list' => $this->projectPermission->getMemberList($project['id'], true, false, true),
'colors_list' => $this->color->getList(),
'categories_list' => $this->category->getList($project['id']),
+ 'swimlanes_list' => $swimlanes_list,
'date_format' => $this->config->get('application_date_format'),
'date_formats' => $this->dateParser->getAvailableFormats(),
'title' => $project['name'].' > '.t('New task')