From eecb6a5020ccda02ccfd9c25f57fc118df406141 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Mon, 2 Sep 2019 09:17:07 +0800 Subject: [PATCH] * code for task #6289. --- module/block/control.php | 1 - 1 file changed, 1 deletion(-) diff --git a/module/block/control.php b/module/block/control.php index 9bd3bd7989..d5d1930881 100644 --- a/module/block/control.php +++ b/module/block/control.php @@ -898,7 +898,6 @@ class block extends control $tasks = $this->dao->select("project, count(id) as totalTasks, count(status in ('wait','doing','pause') or null) as undoneTasks, count(finishedDate like '{$yesterday}%' or null) as yesterdayFinished, sum(if(status != 'cancel', estimate, 0)) as totalEstimate, sum(consumed) as totalConsumed, sum(if(status != 'cancel' and status != 'closed', `left`, 0)) as totalLeft")->from(TABLE_TASK) ->where('project')->in($projectIdList) ->andWhere('deleted')->eq(0) - ->andWhere('parent')->ge(0) ->groupBy('project') ->fetchAll('project'); foreach($tasks as $projectID => $task)