From df18d11db080589314e03dc3d7c5dbc275e8e81e Mon Sep 17 00:00:00 2001 From: zhaoke Date: Mon, 3 Apr 2023 17:03:00 +0800 Subject: [PATCH] * Fix lose automation case in testcases api. --- api/v1/entries/testcases.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/v1/entries/testcases.php b/api/v1/entries/testcases.php index 9aa0ff714f..79d6d9cf51 100644 --- a/api/v1/entries/testcases.php +++ b/api/v1/entries/testcases.php @@ -23,8 +23,9 @@ class testcasesEntry extends entry if(empty($productID)) $productID = $this->param('product', 0); if(empty($productID)) return $this->sendError(400, 'Need product id.'); - $this->app->cookie->caseModule = 0; - $this->app->cookie->caseSuite = 0; + $this->app->cookie->caseModule = 0; + $this->app->cookie->caseSuite = 0; + $this->app->cookie->showAutoCase = 1; $type = $this->param('status', 'all'); $param = 0;