* [task#125055,done,0.1h,0h] Add sapces to sql.
This commit is contained in:
@@ -1895,7 +1895,7 @@ class repoModel extends model
|
||||
->where('revision')->in([$log->revision])
|
||||
->andWhere('repo')->eq($repo->id)
|
||||
->fetchPairs('id');
|
||||
foreach (array('stories'=>'story', 'tasks'=>'task', 'bugs'=>'bug') as $objectType=>$modelType)
|
||||
foreach (array('stories' => 'story', 'tasks' => 'task', 'bugs' => 'bug') as $objectType=>$modelType)
|
||||
{
|
||||
if(!empty($objects[$objectType]))
|
||||
{
|
||||
|
||||
@@ -5415,8 +5415,8 @@ class storyModel extends model
|
||||
{
|
||||
return $this->dao->select('t1.revision,t3.id AS id,t3.title AS title')
|
||||
->from(TABLE_REPOHISTORY)->alias('t1')
|
||||
->leftJoin(TABLE_RELATION)->alias('t2')->on('t2.relation="completedin" and t2.BType="commit" and t2.BID=t1.id')
|
||||
->leftJoin(TABLE_STORY)->alias('t3')->on('t2.AType="story" and t2.AID=t3.id')
|
||||
->leftJoin(TABLE_RELATION)->alias('t2')->on('t2.relation="completedin" AND t2.BType="commit" AND t2.BID=t1.id')
|
||||
->leftJoin(TABLE_STORY)->alias('t3')->on('t2.AType="story" AND t2.AID=t3.id')
|
||||
->where('t1.revision')->in($revisions)
|
||||
->andWhere('t1.repo')->eq($repoID)
|
||||
->andWhere('t3.id')->ne('')
|
||||
|
||||
Reference in New Issue
Block a user