Merge branch 'sprint/235' into 'master'
Sprint/235 See merge request easycorp/zentaopms!5216
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#budget {border-right: 0px;}
|
||||
#budget:focus {border-right: 1px solid #0c64eb;}
|
||||
#budgetUnit {border-left: 0px;}
|
||||
#budgetUnit:focus {border-left: 1px solid #0c64eb;}
|
||||
#dateRange, .futureBox {vertical-align: top !important; padding-top: 13px !important;}
|
||||
#endList {vertical-align: top; padding-top: 13px;}
|
||||
[lang^=en] #endList {vertical-align: top; padding-top: 20px;}
|
||||
|
||||
@@ -1411,18 +1411,22 @@ class programModel extends model
|
||||
}
|
||||
|
||||
/* Get the number of project teams. */
|
||||
$teams = $this->dao->select('root,count(*) as teams')->from(TABLE_TEAM)
|
||||
->where('root')->in($projectKeys)
|
||||
->andWhere('type')->eq('project')
|
||||
->groupBy('root')
|
||||
$teams = $this->dao->select('t1.root,count(t1.id) as teams')->from(TABLE_TEAM)->alias('t1')
|
||||
->leftJoin(TABLE_USER)->alias('t2')->on('t1.account=t2.account')
|
||||
->where('t1.root')->in($projectKeys)
|
||||
->andWhere('t1.type')->eq('project')
|
||||
->andWhere('t2.deleted')->eq(0)
|
||||
->groupBy('t1.root')
|
||||
->fetchAll('root');
|
||||
|
||||
/* Get the members of project teams. */
|
||||
if($this->cookie->projectType and $this->cookie->projectType == 'bycard')
|
||||
{
|
||||
$teamMembers = $this->dao->select('root,account')->from(TABLE_TEAM)
|
||||
->where('root')->in($projectKeys)
|
||||
->andWhere('type')->eq('project')
|
||||
$teamMembers = $this->dao->select('t1.root,t1.account')->from(TABLE_TEAM)->alias('t1')
|
||||
->leftJoin(TABLE_USER)->alias('t2')->on('t1.account=t2.account')
|
||||
->where('t1.root')->in($projectKeys)
|
||||
->andWhere('t1.type')->eq('project')
|
||||
->andWhere('t2.deleted')->eq(0)
|
||||
->fetchGroup('root', 'account');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user