From 6c971a35c8b109a1dfc516186fe42f0a668bdd5e Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Tue, 27 Sep 2022 08:50:09 +0800 Subject: [PATCH] * Adjust the code. --- module/testcase/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/testcase/control.php b/module/testcase/control.php index 3f6465b000..2f7c3d0bcb 100644 --- a/module/testcase/control.php +++ b/module/testcase/control.php @@ -975,8 +975,8 @@ class testcase extends control $moduleIdList = $case->module; if($case->module) $moduleIdList = $this->tree->getAllChildID($case->module); + $moduleIdList = (!in_array($this->app->tab, array('execution', 'project')) and empty($stories)) ? 0 : $moduleIdList; $stories = $this->story->getProductStoryPairs($productID, $case->branch, $moduleIdList, 'all','id_desc', 0, 'full', 'story', false); - if(!in_array($this->app->tab, array('execution', 'project')) and empty($stories)) $stories = $this->story->getProductStoryPairs($productID, $case->branch, 0, 'all','id_desc', 0, 'full', 'story', false); $this->view->productID = $productID; $this->view->product = $product;