diff --git a/module/bug/view/browse.html.php b/module/bug/view/browse.html.php index c329b5c8fb..2eb9bc2557 100644 --- a/module/bug/view/browse.html.php +++ b/module/bug/view/browse.html.php @@ -118,7 +118,8 @@ $currentBrowseType = isset($lang->bug->mySelects[$browseType]) && in_array($brow bug->mySelects[$browseType]) && in_array($brow { $createBugLink = $this->createLink('bug', 'create', "productID=$productID&branch=$branch&extra=moduleID=$moduleID"); } + $batchCreateLink = $this->createLink('bug', 'batchCreate', "productID=$productID&branch=$branch&executionID=0&moduleID=$moduleID"); + + $buttonLink = ''; + $buttonTitle = ''; + if(common::hasPriv('bug', 'batchCreate')) + { + $buttonLink = $batchCreateLink; + $buttonTitle = $lang->bug->batchCreate; + } + if(common::hasPriv('bug', 'create')) + { + $buttonLink = $createBugLink; + $buttonTitle = $lang->bug->create; + } + $hidden = empty($buttonLink) ? 'hidden' : ''; ?>