summaryrefslogtreecommitdiff
path: root/app/Controller
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-03-21 13:22:08 -0400
committerFrederic Guillot <fred@kanboard.net>2015-03-21 13:22:08 -0400
commit28a1461f6509ff604c723a044d52f7be3bf75b19 (patch)
tree0e36e4d2fc9379013ecca633ff2a499c5f20b314 /app/Controller
parent9e4eac94fc7ccc75109782ae45a39082572bd2c6 (diff)
Add swimlane dropdown in task creation form
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'].' &gt; '.t('New task')