* Fix bug#17113.

This commit is contained in:
xieqiyu
2021-12-06 11:55:46 +08:00
parent 4de8fc462f
commit 0dc84860e9
+6 -1
View File
@@ -1847,11 +1847,16 @@ class testcase extends control
$caseLang = $this->lang->testcase;
$caseConfig = $this->config->testcase;
$branches = $this->loadModel('branch')->getPairs($productID);
$modules = $this->loadModel('tree')->getOptionMenu($productID, 'case', 0, empty($branches) ? 0 : array_keys($branches));
$stories = $this->loadModel('story')->getProductStoryPairs($productID, $branch);
$fields = $this->testcase->getImportFields($productID);
$fields = array_flip($fields);
$branchModules = $this->loadModel('tree')->getOptionMenu($productID, 'case', 0, empty($branches) ? array(0) : array_keys($branches));
foreach($branchModules as $branchID => $moduleList)
{
foreach($moduleList as $moduleID => $moduleName) $modules[$moduleID] = $moduleName;
}
if(!empty($maxImport) and file_exists($tmpFile))
{
$data = unserialize(file_get_contents($tmpFile));