diff --git a/module/build/model.php b/module/build/model.php index a50051bf14..304e8b7da7 100644 --- a/module/build/model.php +++ b/module/build/model.php @@ -133,6 +133,7 @@ class buildModel extends model return $this->dao->select('id, name')->from(TABLE_BUILD) ->where('project')->eq((int)$projectID) ->orderBy('date DESC') + ->limit(1) ->fetch(); } diff --git a/module/release/model.php b/module/release/model.php index c86ceb1791..9fe80829e9 100644 --- a/module/release/model.php +++ b/module/release/model.php @@ -65,6 +65,7 @@ class releaseModel extends model return $this->dao->select('id, name')->from(TABLE_RELEASE) ->where('product')->eq((int)$productID) ->orderBy('date DESC') + ->limit(1) ->fetch(); }