From 7a3e44d49969b801f457dcd7cc79937a1d6d6035 Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Mon, 26 Sep 2022 10:22:39 +0800 Subject: [PATCH] * Handle feedback #963. --- module/testcase/control.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/module/testcase/control.php b/module/testcase/control.php index 46be8135c0..3f6465b000 100644 --- a/module/testcase/control.php +++ b/module/testcase/control.php @@ -975,13 +975,16 @@ class testcase extends control $moduleIdList = $case->module; if($case->module) $moduleIdList = $this->tree->getAllChildID($case->module); + $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; $this->view->products = $this->products; $this->view->branchTagOption = $branchTagOption; $this->view->productName = $this->products[$productID]; $this->view->moduleOptionMenu = $moduleOptionMenu; - $this->view->stories = $this->story->getProductStoryPairs($productID, $case->branch, $moduleIdList, 'all','id_desc', 0, 'full', 'story', false); + $this->view->stories = $stories; } $forceNotReview = $this->testcase->forceNotReview(); if($forceNotReview) unset($this->lang->testcase->statusList['wait']);