summaryrefslogtreecommitdiff
path: root/app/Controller
diff options
context:
space:
mode:
Diffstat (limited to 'app/Controller')
-rw-r--r--app/Controller/Config.php1
-rw-r--r--app/Controller/Task.php2
2 files changed, 2 insertions, 1 deletions
diff --git a/app/Controller/Config.php b/app/Controller/Config.php
index 1e6b3dc8..206237c0 100644
--- a/app/Controller/Config.php
+++ b/app/Controller/Config.php
@@ -104,6 +104,7 @@ class Config extends Base
$this->common('project');
$this->response->html($this->layout('config/project', array(
+ 'colors' => $this->color->getList(),
'default_columns' => implode(', ', $this->board->getDefaultColumns()),
'title' => t('Settings').' > '.t('Project settings'),
)));
diff --git a/app/Controller/Task.php b/app/Controller/Task.php
index db12a0c7..6e525b13 100644
--- a/app/Controller/Task.php
+++ b/app/Controller/Task.php
@@ -122,7 +122,7 @@ class Task extends Base
$values = array(
'swimlane_id' => $this->request->getIntegerParam('swimlane_id', key($swimlanes_list)),
'column_id' => $this->request->getIntegerParam('column_id'),
- 'color_id' => $this->request->getStringParam('color_id'),
+ 'color_id' => $this->request->getStringParam('color_id', $this->color->getDefaultColor()),
'owner_id' => $this->request->getIntegerParam('owner_id'),
'another_task' => $this->request->getIntegerParam('another_task'),
);