Merge branch 'fixbugs_zhouxin_22044' into 'master'
* Fix bug #22044. See merge request easycorp/zentaopms!3172
This commit is contained in:
@@ -415,7 +415,7 @@ class projectModel extends model
|
||||
$workhour = new stdclass();
|
||||
$workhour->totalHours = $this->dao->select('sum(t1.days * t1.hours) AS totalHours')->from(TABLE_TEAM)->alias('t1')
|
||||
->leftJoin(TABLE_PROJECT)->alias('t2')->on('t1.root=t2.id')
|
||||
->where('t2.project')->in($projectID)
|
||||
->where('t2.id')->in($projectID)
|
||||
->andWhere('t2.deleted')->eq(0)
|
||||
->andWhere('t1.type')->eq('project')
|
||||
->fetch('totalHours');
|
||||
|
||||
Reference in New Issue
Block a user