diff --git a/module/bug/control.php b/module/bug/control.php index 78c7df3d0e..1a9a026bc7 100644 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -543,6 +543,8 @@ class bug extends control $builds = $this->loadModel('build')->getBuildPairs($productID, $branch, 'noempty,noterminate,nodone,withbranch'); $stories = $this->story->getProductStoryPairs($productID, $branch); } + + /* Remove parent stories. */ foreach($stories as $key => $value) { $story = $this->story->getByID($value); diff --git a/module/testcase/control.php b/module/testcase/control.php index 35abce007d..c1f236ea16 100644 --- a/module/testcase/control.php +++ b/module/testcase/control.php @@ -893,12 +893,15 @@ class testcase extends control { $branchTagOption[$branchInfo->id] = $branchInfo->name . ($branchInfo->status == 'closed' ? ' (' . $this->lang->branch->statusList['closed'] . ')' : ''); } + + /* Remove parent stories. */ $stories = $this->story->getProductStoryPairs($productID, $case->branch); foreach($stories as $key => $value) { $story = $this->story->getByID($value); if(!empty($story->childStories)) unset($stories[$key]); } + $this->view->productID = $productID; $this->view->product = $product; $this->view->branchTagOption = $branchTagOption; @@ -908,11 +911,8 @@ class testcase extends control } $forceNotReview = $this->testcase->forceNotReview(); if($forceNotReview) unset($this->lang->testcase->statusList['wait']); - $position[] = $this->lang->testcase->common; - $position[] = $this->lang->testcase->edit; $this->view->title = $title; - $this->view->position = $position; $this->view->currentModuleID = $case->module; $this->view->users = $this->user->getPairs('noletter'); $this->view->case = $case;