* Fix bug.

This commit is contained in:
leiyong
2021-04-09 13:16:24 +03:00
parent b89e3d0665
commit d0e21dee63
8 changed files with 46 additions and 61 deletions
+1 -1
View File
@@ -1545,7 +1545,7 @@ class bugModel extends model
$execution = $this->dao->select('*')->from(TABLE_EXECUTION)->where('id')->eq($build->execution)->fetch();
$beforeBuilds = $this->dao->select('t1.id')->from(TABLE_BUILD)->alias('t1')
->leftJoin(TABLE_EXECTUION)->alias('t2')->on('t1.execution=t2.id')
->leftJoin(TABLE_EXECUTION)->alias('t2')->on('t1.execution=t2.id')
->where('t1.product')->eq($productID)
->andWhere('t2.status')->ne('done')
->andWhere('t2.deleted')->eq(0)