diff --git a/api/v1/entries/testsuite.php b/api/v1/entries/testsuite.php index ab6047a9d2..a06fa5711b 100644 --- a/api/v1/entries/testsuite.php +++ b/api/v1/entries/testsuite.php @@ -21,7 +21,7 @@ class testsuiteEntry extends entry public function get($testsuiteID) { $control = $this->loadController('testsuite', 'view'); - $control->view($testsuiteID, $this->param('version', 0)); + $control->view($testsuiteID, $this->param('order', 'id_desc'), 0, $this->param('limit', 20), $this->param('page', 1)); $data = $this->getData(); if(!$data or (isset($data->message) and $data->message == '404 Not found')) return $this->send404(); diff --git a/api/v1/entries/testsuites.php b/api/v1/entries/testsuites.php index 22012099fc..ece087dc4e 100644 --- a/api/v1/entries/testsuites.php +++ b/api/v1/entries/testsuites.php @@ -24,7 +24,7 @@ class testsuitesEntry extends entry if(empty($productID)) return $this->sendError(400, 'Need product id.'); $control = $this->loadController('testsuite', 'browse'); - $control->browse($productID, $this->param('order', 'id_desc'), 0, $this->param('limit', 20), $this->param('page', 1)); + $control->browse($productID, 'all', $this->param('order', 'id_desc'), 0, $this->param('limit', 20), $this->param('page', 1)); $data = $this->getData(); if(isset($data->status) and $data->status == 'success')