* Modify the case module problem.
This commit is contained in:
@@ -924,7 +924,7 @@ class testcase extends control
|
||||
$libraries = $this->loadModel('caselib')->getLibraries();
|
||||
|
||||
/* Set modules. */
|
||||
$modules = $this->tree->getOptionMenu($libID, $viewType = 'caselib', $startModuleID = 0, $branch);
|
||||
$modules[$productID][$branch] = $this->tree->getOptionMenu($libID, $viewType = 'caselib', 0, $branch);
|
||||
|
||||
$this->view->modules = $modules;
|
||||
$this->view->title = $libraries[$libID] . $this->lang->colon . $this->lang->testcase->batchEdit;
|
||||
@@ -947,11 +947,11 @@ class testcase extends control
|
||||
{
|
||||
$branches = $this->loadModel('branch')->getPairsByProjectProduct($this->session->project, $productID);
|
||||
}
|
||||
foreach($branches as $branchID => $branchName) $modules[$branchID] = $this->tree->getOptionMenu($productID, $viewType = 'case', 0, $branchID);
|
||||
foreach($branches as $branchID => $branchName) $modules[$productID][$branchID] = $this->tree->getOptionMenu($productID, 'case', 0, $branchID);
|
||||
}
|
||||
else
|
||||
{
|
||||
$modules[0] = $this->tree->getOptionMenu($productID, $viewType = 'case', 0, 0);
|
||||
$modules[$productID][0] = $this->tree->getOptionMenu($productID, 'case', 0, 0);
|
||||
}
|
||||
|
||||
$this->view->branches = $branches;
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
foreach($branches as $branchID => $branchName) $branches[$branchID] = '/' . $product->name . '/' . $branchName;
|
||||
}
|
||||
|
||||
$modules[$caseBranch] = $this->tree->getOptionMenu($cases[$caseID]->product, $viewType = 'case', 0, $caseBranch);
|
||||
$modules[$caseProductID][$caseBranch] = $this->tree->getOptionMenu($cases[$caseID]->product, 'case', 0, $caseBranch);
|
||||
}
|
||||
?>
|
||||
<tr class='text-center'>
|
||||
@@ -106,7 +106,8 @@
|
||||
<?php echo html::select("branches[$caseID]", $branches, $cases[$caseID]->branch, "class='form-control chosen' onchange='loadBranches($branchProductID, this.value, $caseID)', $disabled");?>
|
||||
</td>
|
||||
<?php endif;?>
|
||||
<td class='text-left<?php echo zget($visibleFields, 'module', ' hidden')?>' style='overflow:visible'><?php echo html::select("modules[$caseID]", $modules[$caseBranch], $cases[$caseID]->module, "class='form-control chosen' onchange='loadStories($productID, this.value, $caseID)'");?></td>
|
||||
<?php $caseProductID = isset($caseProductID) ? $caseProductID : $productID;?>
|
||||
<td class='text-left<?php echo zget($visibleFields, 'module', ' hidden')?>' style='overflow:visible'><?php echo html::select("modules[$caseID]", $modules[$caseProductID][$caseBranch], $cases[$caseID]->module, "class='form-control chosen' onchange='loadStories($productID, this.value, $caseID)'");?></td>
|
||||
<td class='text-left<?php echo zget($visibleFields, 'story', ' hidden')?>' style='overflow:visible'><?php echo html::select("story[$caseID]", $stories, $cases[$caseID]->story, "class='form-control chosen'");?></td>
|
||||
<td style='overflow:visible' title='<?php echo $cases[$caseID]->title?>'>
|
||||
<div class='input-group'>
|
||||
|
||||
Reference in New Issue
Block a user