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 17741b2f65..f972d8278f 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 960f53de59..d59a6b7c6e 100644 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -2962,7 +2962,7 @@ class executionModel extends model ->andWhere('deleted')->eq(0) ->orderBy($orderBy) ->page($pager) - ->fetchAll(); + ->fetchAll('id'); } /**