diff --git a/module/bug/model.php b/module/bug/model.php index 19f63f7382..75fb30f306 100644 --- a/module/bug/model.php +++ b/module/bug/model.php @@ -2136,8 +2136,8 @@ class bugModel 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_BUG)->alias('t3')->on('t2.AType="bug" 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_BUG)->alias('t3')->on('t2.AType="bug" AND t2.AID=t3.id') ->where('t1.revision')->in($revisions) ->andWhere('t1.repo')->eq($repoID) ->andWhere('t3.id')->ne('') diff --git a/module/design/model.php b/module/design/model.php index c84ab8d5d2..2d8e5c03aa 100755 --- a/module/design/model.php +++ b/module/design/model.php @@ -426,8 +426,8 @@ class designModel extends model { return $this->dao->select('t1.revision,t3.id AS id,t3.name 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_DESIGN)->alias('t3')->on('t2.AType="design" 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_DESIGN)->alias('t3')->on('t2.AType="design" AND t2.AID=t3.id') ->where('t1.revision')->in($revisions) ->andWhere('t1.repo')->eq($repoID) ->andWhere('t3.id')->ne('')