From f9cc2702f9b74244536a89328bd3b2407e283374 Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Wed, 16 Feb 2022 09:24:11 +0800 Subject: [PATCH] * Fix bug #19649. --- module/task/model.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/task/model.php b/module/task/model.php index 37a2ee60d1..b5313feb1b 100644 --- a/module/task/model.php +++ b/module/task/model.php @@ -2194,6 +2194,8 @@ class taskModel extends model ->leftJoin(TABLE_STORY)->alias('t3')->on('t1.story = t3.id') ->leftJoin(TABLE_PROJECT)->alias('t4')->on("t1.project = t4.id") ->where('t1.deleted')->eq(0) + ->andWhere('t2.deleted')->eq(0) + ->andWhere('t4.deleted')->eq(0) ->beginIF($type != 'closedBy' and $this->app->moduleName == 'block')->andWhere('t1.status')->ne('closed')->fi() ->beginIF($projectID)->andWhere('t1.project')->eq($projectID)->fi() ->beginIF($type == 'finishedBy')