* Fix bug #48626.
This commit is contained in:
@@ -1341,8 +1341,8 @@ class programModel extends model
|
||||
->where('t1.`date`')->ge($updateTime)
|
||||
->andWhere('t1.project')->ne(0)
|
||||
->fetchAll('project');
|
||||
if(empty($projects)) return;
|
||||
}
|
||||
if(empty($projects)) return;
|
||||
|
||||
/* 1. Refresh stats to db. */
|
||||
$this->programTao->updateStats(array_keys($projects));
|
||||
|
||||
@@ -336,10 +336,11 @@ class programTao extends programModel
|
||||
*/
|
||||
protected function setNoTaskExecution(array $projectIdList): array
|
||||
{
|
||||
$summary = array();
|
||||
$summary = array();
|
||||
$executionGroup = $this->dao->select('id, project')->from(TABLE_PROJECT)->where('project')->in($projectIdList)->andWhere('deleted')->eq(0)->fetchGroup('project', 'id');
|
||||
foreach($projectIdList as $projectID)
|
||||
{
|
||||
$executions = $this->dao->select('id')->from(TABLE_PROJECT)->where('project')->eq($projectID)->andWhere('deleted')->eq(0)->fetchPairs();
|
||||
$executions = zget($executionGroup, $projectID, array());
|
||||
foreach($executions as $executionID)
|
||||
{
|
||||
$taskCount = $this->dao->select('id')->from(TABLE_TASK)
|
||||
|
||||
Reference in New Issue
Block a user