From c4ec0828f6541036a2cf417ed73adb2dcdd7aa38 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Mon, 12 Sep 2016 17:15:19 +0800 Subject: [PATCH] * fix bug #879. --- module/build/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }