* Modify the logic of loading stories when creating use cases in batches.

This commit is contained in:
tianshujie
2021-11-17 14:50:42 +08:00
parent fdade49b5d
commit 859327d7a3
6 changed files with 52 additions and 71 deletions
+3 -2
View File
@@ -522,8 +522,9 @@ class testcase extends control
$this->app->tab == 'project' ? $this->loadModel('project')->setMenu($this->session->project) : $this->testcase->setMenu($this->products, $productID, $branch);
/* Set story list. */
$story = $storyID ? $this->story->getByID($storyID) : '';
$storyList = $storyID ? array($storyID => $story->id . ':' . $story->title) : array('');
$story = $storyID ? $this->story->getByID($storyID) : '';
$storyList = $this->loadModel('story')->getProductStoryPairs($productID, $branch);
$storyList += $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);