diff --git a/module/build/model.php b/module/build/model.php index a6f1d2385d..a14e3aeba6 100644 --- a/module/build/model.php +++ b/module/build/model.php @@ -162,7 +162,7 @@ class buildModel extends model { return $this->dao->select('id, name')->from(TABLE_BUILD) ->where('project')->eq((int)$projectID) - ->orderBy('date DESC') + ->orderBy('date DESC,id DESC') ->limit(1) ->fetch(); }