From 20824f3b52f181c26b7ccb19f79387804ece4aba Mon Sep 17 00:00:00 2001 From: liugang Date: Mon, 14 Aug 2023 15:33:44 +0800 Subject: [PATCH] * testtask: filter the posted case id list. --- module/testtask/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/testtask/control.php b/module/testtask/control.php index dabdad377e..9fb1dd9f74 100644 --- a/module/testtask/control.php +++ b/module/testtask/control.php @@ -1360,7 +1360,7 @@ class testtask extends control } if(!$this->post->caseIDList) return print(js::locate($url, 'parent')); - $caseIDList = array_unique($this->post->caseIDList); + $caseIDList = $this->loadModel('testcase')->filterIdList($this->post->caseIDList); /* The case of tasks of qa. */ if($productID or ($this->app->tab == 'project' and empty($productID)))