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']);
+1 -1
View File
@@ -99,7 +99,7 @@ $(function()
var id = $(this).attr('id');
var num = id.substring(5);
var moduleID = $('#modules' + num).val();
var branchID = $('#branches' + num).val();
var branchID = typeof($('#branches' + num).val()) == 'undefined' ? 0 : $('#branches' + num).val();
var storyID = $("#story" + num).val();
var storyLink = createLink('story', 'ajaxGetProductStories', 'productID=' + productID + '&branch=' + branchID + '&moduleID=' + moduleID + '&storyID=0&onlyOption=false&status=noclosed&limit=50&type=full&hasParent=1&executionID=0&number=' + num);
$.get(storyLink, function(stories)