summaryrefslogtreecommitdiff
path: root/app/Model
diff options
context:
space:
mode:
authorSébastien Kergreis <seb.kerro@gmail.com>2016-05-23 18:24:37 -0500
committerSébastien Kergreis <seb.kerro@gmail.com>2016-05-23 18:41:10 -0500
commit454f47a94a7039fb9929c68d30b995ee71f7f13f (patch)
treefc47508d46d62403a26defb0c59438572a160d9d /app/Model
parentdc6176fca23ea697380ab115aea976fa8271f047 (diff)
Adds task column in 'my tasks' table on dasboard
Diffstat (limited to 'app/Model')
-rw-r--r--app/Model/TaskFinder.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/Model/TaskFinder.php b/app/Model/TaskFinder.php
index 28ddb88f..f8566bc2 100644
--- a/app/Model/TaskFinder.php
+++ b/app/Model/TaskFinder.php
@@ -73,9 +73,11 @@ class TaskFinder extends Base
'tasks.time_estimated',
'tasks.is_active',
'tasks.creator_id',
- 'projects.name AS project_name'
+ 'projects.name AS project_name',
+ 'columns.title AS column_title'
)
->join(Project::TABLE, 'id', 'project_id')
+ ->join(Column::TABLE, 'id', 'column_id')
->eq(Task::TABLE.'.owner_id', $user_id)
->eq(Task::TABLE.'.is_active', Task::STATUS_OPEN)
->eq(Project::TABLE.'.is_active', Project::ACTIVE);