* Fix error of create test case.

This commit is contained in:
holan20180123
2021-03-05 10:56:34 +08:00
parent ac4fb734d5
commit d829157cb1
+3 -3
View File
@@ -344,10 +344,10 @@ class testcase extends control
$position[] = $this->lang->testcase->create;
/* Set story and currentModuleID. */
if($storyID and empty($moduleID))
if($storyID)
{
$story = $this->loadModel('story')->getByID($storyID);
$moduleID = $story->module;
$story = $this->loadModel('story')->getByID($storyID);
if(empty($moduleID)) $moduleID = $story->module;
}
$currentModuleID = (int)$moduleID;