From a5598ddf64ba12ff266e27724c54a09519b58086 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Thu, 2 Dec 2021 10:04:02 +0800 Subject: [PATCH] * Fix bug #16897. --- module/bug/model.php | 2 +- module/execution/control.php | 6 +++--- module/execution/model.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/module/bug/model.php b/module/bug/model.php index 1e6d6c2c1d..564756e296 100644 --- a/module/bug/model.php +++ b/module/bug/model.php @@ -570,7 +570,7 @@ class bugModel extends model ->andWhere('t1.deleted')->eq(0) ->orderBy('id desc') ->page($pager) - ->fetchAll(); + ->fetchAll('id'); } /** diff --git a/module/execution/control.php b/module/execution/control.php index ab52d012d1..c6f30549e0 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -603,7 +603,7 @@ class execution extends control if($this->session->importBugQuery == false) $this->session->set('importBugQuery', ' 1 = 1'); } $bugQuery = str_replace("`product` = 'all'", "`product`" . helper::dbIN(array_keys($products)), $this->session->importBugQuery); // Search all execution. - $bugs = $this->execution->getSearchBugs($products, $executionID, $bugQuery, $pager, 'id_desc'); + $bugs = $this->execution->getSearchBugs($products, $executionID, $bugQuery, $pager, 'id_desc'); } /* Build the search form. */ @@ -656,8 +656,8 @@ class execution extends control $this->view->browseType = $browseType; $this->view->param = $param; $this->view->users = $users; - $this->view->execution = $this->execution->getByID($executionID); - $this->view->executionID = $executionID; + $this->view->execution = $this->execution->getByID($executionID); + $this->view->executionID = $executionID; $this->view->requiredFields = explode(',', $this->config->task->create->requiredFields); $this->display(); } diff --git a/module/execution/model.php b/module/execution/model.php index 6bc0c46e6c..405d0d1e36 100644 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -2951,7 +2951,7 @@ class executionModel extends model ->andWhere('deleted')->eq(0) ->orderBy($orderBy) ->page($pager) - ->fetchAll(); + ->fetchAll('id'); } /**