diff --git a/module/ci/control.php b/module/ci/control.php index 8ca97cdaa6..f7911dca57 100644 --- a/module/ci/control.php +++ b/module/ci/control.php @@ -414,6 +414,7 @@ class ci extends control } } + $latestInDB = $this->dao->select('DISTINCT t1.*')->from(TABLE_REPOHISTORY)->alias('t1') ->leftJoin(TABLE_REPOBRANCH)->alias('t2')->on('t1.id=t2.revision') ->where('t1.repo')->eq($repoID)