summaryrefslogtreecommitdiff
path: root/app/Controller/CategoryController.php
diff options
context:
space:
mode:
authorJulian Maurice <julian.maurice@biblibre.com>2018-08-09 19:45:51 +0200
committerJulian Maurice <julian.maurice@biblibre.com>2018-08-09 19:45:51 +0200
commitae3ade0908bae350488260ee5d878a2ffbff605a (patch)
tree747db7edaca2fcb6d3c23594437b995528790ced /app/Controller/CategoryController.php
parentefd64d842d82404612baef58d9debe1af7515a66 (diff)
Allow to associate project categories to colors
The color is then used as background in the board and list views
Diffstat (limited to 'app/Controller/CategoryController.php')
-rw-r--r--app/Controller/CategoryController.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/Controller/CategoryController.php b/app/Controller/CategoryController.php
index e3f2406b..c2b8c2a6 100644
--- a/app/Controller/CategoryController.php
+++ b/app/Controller/CategoryController.php
@@ -41,6 +41,7 @@ class CategoryController extends BaseController
$this->response->html($this->template->render('category/create', array(
'values' => $values + array('project_id' => $project['id']),
+ 'colors' => $this->colorModel->getList(),
'errors' => $errors,
'project' => $project,
)));
@@ -87,6 +88,7 @@ class CategoryController extends BaseController
$this->response->html($this->template->render('category/edit', array(
'values' => empty($values) ? $category : $values,
+ 'colors' => $this->colorModel->getList(),
'errors' => $errors,
'project' => $project,
)));