From d829157cb172be628fde807015c4cc7a90a0ce97 Mon Sep 17 00:00:00 2001 From: holan20180123 <56391770@qq.com> Date: Fri, 5 Mar 2021 10:56:34 +0800 Subject: [PATCH] * Fix error of create test case. --- 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 12a6683d18..788439648e 100644 --- a/module/testcase/control.php +++ b/module/testcase/control.php @@ -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;