This commit is contained in:
tianshujie
2021-12-09 10:34:47 +08:00
committed by 孙广明
parent 9f168793fe
commit d33c071177
+5 -4
View File
@@ -548,10 +548,6 @@ class testcase extends control
$storyPairs = $this->loadModel('story')->getProductStoryPairs($productID, $branch === 'all' ? 0 : $branch);
$storyPairs += $storyID ? array($storyID => $story->id . ':' . $story->title) : array('');
/* Set module option menu. */
$moduleOptionMenu = $this->tree->getOptionMenu($productID, $viewType = 'case', $startModuleID = 0, $branch === 'all' ? 0 : $branch);
$moduleOptionMenu['ditto'] = $this->lang->testcase->ditto;
/* Set custom. */
$product = $this->product->getById($productID);
foreach(explode(',', $this->config->testcase->customBatchCreateFields) as $field)
@@ -589,6 +585,11 @@ class testcase extends control
$branches = $this->loadModel('branch')->getPairs($productID, 'active');
}
/* Set module option menu. */
$moduleOptionMenu = $this->tree->getOptionMenu($productID, 'case', 0, $branch === 'all' ? 0 : $branch);
$moduleOptionMenu['ditto'] = $this->lang->testcase->ditto;
$this->view->customFields = $customFields;
$this->view->showFields = $showFields;