Merge pull-request #2261

This commit is contained in:
Frederic Guillot
2016-05-24 22:14:48 -04:00
2 changed files with 8 additions and 2 deletions

View File

@@ -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);