summaryrefslogtreecommitdiff
path: root/plugins/Group_assign/Model/OldTaskFinderModel.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Group_assign/Model/OldTaskFinderModel.php')
-rw-r--r--plugins/Group_assign/Model/OldTaskFinderModel.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/Group_assign/Model/OldTaskFinderModel.php b/plugins/Group_assign/Model/OldTaskFinderModel.php
index 70d06126..9aeeb6dc 100644
--- a/plugins/Group_assign/Model/OldTaskFinderModel.php
+++ b/plugins/Group_assign/Model/OldTaskFinderModel.php
@@ -146,7 +146,7 @@ class OldTaskFinderModel extends Base
*/
public function getExtendedQuery()
{
- return $this->db
+ $query = $this->db
->table(TaskModel::TABLE)
->columns(
'(SELECT COUNT(*) FROM '.CommentModel::TABLE.' WHERE task_id=tasks.id) AS nb_comments',
@@ -207,6 +207,8 @@ class OldTaskFinderModel extends Base
->join(GroupModel::TABLE, 'id', 'owner_gp', TaskModel::TABLE)
->join(MultiselectModel::TABLE, 'id', 'owner_ms', TaskModel::TABLE)
->join(ProjectModel::TABLE, 'id', 'project_id', TaskModel::TABLE);
+ $query = $this->hook->reference('task:query:extended', $query);
+ return $query;
}
/**