summaryrefslogtreecommitdiff
path: root/plugins/Group_assign/Model/NewTaskFinderModel.php
diff options
context:
space:
mode:
authorDzial Techniczny WMW Projekt s.c <techniczna@wmwprojekt.pl>2020-01-15 15:54:11 +0100
committerDzial Techniczny WMW Projekt s.c <techniczna@wmwprojekt.pl>2020-01-15 15:54:11 +0100
commitb6f34622b169652c57e7cabd8d11e28605f110c3 (patch)
tree39496fdf3c35177aaccb394bba8cd46d221b6426 /plugins/Group_assign/Model/NewTaskFinderModel.php
parent3317d87addb03688a08a7fb12200b4913125dba7 (diff)
Extending extended query for tasks with possible hooks
Diffstat (limited to 'plugins/Group_assign/Model/NewTaskFinderModel.php')
-rw-r--r--plugins/Group_assign/Model/NewTaskFinderModel.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/Group_assign/Model/NewTaskFinderModel.php b/plugins/Group_assign/Model/NewTaskFinderModel.php
index b8b10916..474f6494 100644
--- a/plugins/Group_assign/Model/NewTaskFinderModel.php
+++ b/plugins/Group_assign/Model/NewTaskFinderModel.php
@@ -146,7 +146,7 @@ class NewTaskFinderModel 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',
@@ -208,6 +208,8 @@ class NewTaskFinderModel 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;
}
/**