This commit is contained in:
tianshujie
2022-07-21 11:11:21 +08:00
parent f32443218c
commit e122aa3be7
2 changed files with 9 additions and 2 deletions
+8 -1
View File
@@ -910,13 +910,20 @@ class testcase extends control
$branchTagOption[$case->branch] = $case->branch == BRANCH_MAIN ? $caseBranch : ($caseBranch->name . ($caseBranch->status == 'closed' ? ' (' . $this->lang->branch->statusList['closed'] . ')' : ''));
}
$moduleIdList = $case->module;
if($case->module)
{
$moduleIdList = $this->loadModel->tree->getStoryModule($case->module);
$moduleIdList = $this->tree->getAllChildID($case->module);
}
$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, 0, 'all','id_desc', 0, 'full', 'story', false);
$this->view->stories = $this->story->getProductStoryPairs($productID, $case->branch, $moduleIdList, 'all','id_desc', 0, 'full', 'story', false);
}
$forceNotReview = $this->testcase->forceNotReview();
if($forceNotReview) unset($this->lang->testcase->statusList['wait']);