* finish task #6849.

This commit is contained in:
wangyidong
2020-02-05 10:06:14 +08:00
parent 4d464543b3
commit 4db7034029
6 changed files with 29 additions and 14 deletions
+2 -1
View File
@@ -219,6 +219,7 @@ class testcase extends control
$response['result'] = 'success';
$response['message'] = $this->lang->saveSuccess;
setcookie('lastCaseModule', (int)$this->post->module, $this->config->cookieLife, $this->config->webRoot, '', false, false);
$caseResult = $this->testcase->create($bugID);
if(!$caseResult or dao::isError())
{
@@ -340,7 +341,7 @@ class testcase extends control
$this->view->productID = $productID;
$this->view->productName = $this->products[$productID];
$this->view->moduleOptionMenu = $this->tree->getOptionMenu($productID, $viewType = 'case', $startModuleID = 0, $branch);
$this->view->currentModuleID = $currentModuleID;
$this->view->currentModuleID = $currentModuleID ? $currentModuleID : (int)$this->post->lastCaseModule;
$this->view->stories = $stories;
$this->view->caseTitle = $caseTitle;
$this->view->color = $color;