From ae1466a9d4cc80bafc5364586ebef89df2028271 Mon Sep 17 00:00:00 2001 From: Yagami Date: Mon, 3 Dec 2018 10:16:18 +0800 Subject: [PATCH] * Fix bug #2313. --- module/task/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/task/model.php b/module/task/model.php index fb8e87b03a..501ec23d8d 100644 --- a/module/task/model.php +++ b/module/task/model.php @@ -1495,7 +1495,7 @@ class taskModel extends model ->leftJoin(TABLE_TEAM)->alias('t4')->on('t4.root = t1.id') ->leftJoin(TABLE_MODULE)->alias('t5')->on('t1.module = t5.id') ->where('t1.project')->eq((int)$projectID) - ->beginIF($type == 'all' || is_array($type))->andWhere('t1.parent')->lt(1)->fi() + ->beginIF(($type == 'all' || is_array($type)) && $modules == 0)->andWhere('t1.parent')->lt(1)->fi() ->beginIF($type == 'myinvolved') ->andWhere("((t4.`account` = '{$this->app->user->account}' AND t4.`type` = 'task') OR t1.`assignedTo` = '{$this->app->user->account}' OR t1.`finishedby` = '{$this->app->user->account}')") ->fi()