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)