From 56de879334f86d03dc388e4a666d310fdb87c8ce Mon Sep 17 00:00:00 2001 From: liugang Date: Tue, 8 Aug 2023 15:56:14 +0800 Subject: [PATCH] * testcase: fix error name of parameters. --- module/testcase/control.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/testcase/control.php b/module/testcase/control.php index 5bb0c0f6c3..23bd8e6e17 100644 --- a/module/testcase/control.php +++ b/module/testcase/control.php @@ -2575,7 +2575,7 @@ class testcase extends control */ public function createScene($productID, $branch = '', $moduleID = 0) { - if(!empty($_POST)) + if($_POST) { setcookie('lastCaseScene', (int)$this->post->parent, $this->config->cookieLife, $this->config->webRoot, '', $this->config->cookieSecure, false); @@ -2583,8 +2583,8 @@ class testcase extends control if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError())); $useSession = $this->app->tab != 'qa' && $this->session->caseList && strpos($this->session->caseList, 'dynamic') === false; - $locate = $useSession ? $this->session->caseList : inlink('browse', "root={$this->post->product}&branch={$this->post->branch}&type=byModule¶m={$this->post->module}"); - return $this->send(array('result' => 'fail', 'message' => $this->lang->saveSuccess, 'locate' => $locate)); + $locate = $useSession ? $this->session->caseList : inlink('browse', "productID={$this->post->product}&branch={$this->post->branch}&browseType=byModule¶m={$this->post->module}"); + return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $locate)); } /* Set menu. */