diff --git a/module/bug/zen.php b/module/bug/zen.php index 8ec86c2132..537e5bc996 100644 --- a/module/bug/zen.php +++ b/module/bug/zen.php @@ -823,7 +823,7 @@ class bugZen extends bug } elseif($this->app->tab == 'project') { - if(isset($output['projectID'])) $this->loadModel('project')->setMenu($output['projectID']); + if(isset($output['projectID'])) $this->loadModel('project')->setMenu((int)$output['projectID']); } else { diff --git a/module/project/ui/bug.html.php b/module/project/ui/bug.html.php index ef55771c90..5af1e3af4c 100644 --- a/module/project/ui/bug.html.php +++ b/module/project/ui/bug.html.php @@ -32,9 +32,11 @@ toolbar ( 'text' => $lang->bug->create, 'icon' => 'plus', - 'class' => 'primary', - 'url' => createLink('bug', 'create', "productID={$productID}&branch=$branchID&extras=projectID=$project->id") - ))) : null, + 'type' => 'primary', + 'url' => createLink('bug', 'create', "productID={$productID}&branch={$branchID}&extras=projectID={$project->id}") + )), + setData('app', 'project') + ) : null, ); $closeLink = $type != 'bysearch' ? createLink('project', 'bug', "projectID={$project->id}&productID={$productID}&branchID=$branchID&orderBy=$orderBy&build=$buildID&type=$type¶m=0&orderBy=$orderBy&recTotal=0&recPerPage={$pager->recPerPage}") : 'javascript:removeCookieByKey("bugModule")';