From cc81f8dd439eb5750185b552dc582d5103a726b4 Mon Sep 17 00:00:00 2001 From: zhaoke Date: Wed, 22 Mar 2023 14:20:26 +0800 Subject: [PATCH] * Fix bug #32701. --- api/v1/entries/testsuite.php | 2 +- api/v1/entries/testsuites.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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')