diff --git a/module/convert/model.php b/module/convert/model.php index c4494dfa0e..97b53d755f 100644 --- a/module/convert/model.php +++ b/module/convert/model.php @@ -81,6 +81,7 @@ class convertModel extends model unset($userConstants['TABLE_STORYSPEC']); unset($userConstants['TABLE_TEAM']); unset($userConstants['TABLE_USERGROUP']); + unset($userConstants['TABLE_STORYSTAGE']); /* Get max id of every table. */ foreach($userConstants as $key => $value) diff --git a/module/project/control.php b/module/project/control.php index 46b342c199..1e08c588b4 100644 --- a/module/project/control.php +++ b/module/project/control.php @@ -626,6 +626,7 @@ class project extends control $project = $this->commonAction($projectID); $products = $this->project->getProducts($project->id); $productID = key($products); // Get the first product for creating bug. + $branchID = $products[$productID]->branch; /* Header and position. */ $title = $project->name . $this->lang->colon . $this->lang->project->bug; @@ -658,6 +659,7 @@ class project extends control $this->view->orderBy = $orderBy; $this->view->users = $users; $this->view->productID = $productID; + $this->view->branchID = empty($this->view->build->branch) ? $branchID : $this->view->build->branch; $this->view->memberPairs = $memberPairs; $this->display(); diff --git a/module/project/view/bug.html.php b/module/project/view/bug.html.php index 3512e77f1f..e6f31b4def 100644 --- a/module/project/view/bug.html.php +++ b/module/project/view/bug.html.php @@ -18,7 +18,7 @@