From ae3ade0908bae350488260ee5d878a2ffbff605a Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Thu, 9 Aug 2018 19:45:51 +0200 Subject: Allow to associate project categories to colors The color is then used as background in the board and list views --- app/Controller/CategoryController.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/Controller/CategoryController.php') 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, ))); -- cgit v1.2.3