* Fix bug in testcase::importFromLib.
This commit is contained in:
@@ -18,8 +18,8 @@ window.updateTable = function(name, value, formData)
|
||||
window.getModuleCellProps = function(cell)
|
||||
{
|
||||
const caseID = cell.row.data.id;
|
||||
const branchID = this.getFormData(`branch[${cell.row.data.id}]`);
|
||||
const modules = canImportModules[branchID][caseID];
|
||||
const branchID = this.getFormData(`branch[${cell.row.data.id}]`) != undefined ? this.getFormData(`branch[${cell.row.data.id}]`) : cell.row.data.branch;
|
||||
const modules = canImportModules[branchID] != undefined && canImportModules[branchID][caseID] != undefined ? canImportModules[branchID][caseID] : {};
|
||||
return {items: modules};
|
||||
}
|
||||
|
||||
|
||||
@@ -168,7 +168,6 @@ class testcaseZen extends testcase
|
||||
foreach($branches as $branchID => $branchName) $canImportModules[$branchID] = $this->testcase->getCanImportedModules($productID, $libID, $branchID, 'items');
|
||||
if(empty($branches)) $canImportModules[0] = $this->testcase->getCanImportedModules($productID, $libID, 0, 'items');
|
||||
|
||||
|
||||
/* Build the search form. */
|
||||
$actionURL = $this->createLink('testcase', 'importFromLib', "productID={$productID}&branch={$branch}&libID={$libID}&orderBy={$orderBy}&browseType=bySearch&queryID=myQueryID");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user