From c9f08e3af8fc025f6c4fd69dfef338df3a1c8bd6 Mon Sep 17 00:00:00 2001 From: tanghucheng Date: Thu, 17 Aug 2023 09:45:28 +0800 Subject: [PATCH] * Fix bug #37382. --- module/testcase/control.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/testcase/control.php b/module/testcase/control.php index c41123365c..30f5bb4100 100644 --- a/module/testcase/control.php +++ b/module/testcase/control.php @@ -1403,6 +1403,8 @@ class testcase extends control */ public function batchDelete($productID = 0) { + $this->post->caseIDList = $this->post->caseIDList ? $this->post->caseIDList : array(); + $this->post->sceneIDList = $this->post->sceneIDList ? $this->post->sceneIDList : array(); if($this->post->caseIDList || $this->post->sceneIDList) { $this->testcase->batchDelete($this->post->caseIDList, $this->post->sceneIDList);