diff --git a/module/bug/view/browse.html.php b/module/bug/view/browse.html.php index 9f1b3085b9..0dc2cfa8d0 100644 --- a/module/bug/view/browse.html.php +++ b/module/bug/view/browse.html.php @@ -190,12 +190,12 @@ js::set('moduleID', $moduleID); $class = "class='disabled'"; $actionLink = $this->createLink('bug', 'batchConfirm'); - $misc = common::hasPriv('bug', 'batchConfirm') ? "onclick=\"setFormAction('$actionLink','hiddenwin')\"" : "class='disabled'"; - echo "
  • " . html::a('#', $lang->bug->confirmBug, '', $misc) . "
  • "; + $misc = common::hasPriv('bug', 'batchConfirm') ? "onclick=\"setFormAction('$actionLink','hiddenwin')\"" : ""; + if($misc) echo "
  • " . html::a('#', $lang->bug->confirmBug, '', $misc) . "
  • "; $actionLink = $this->createLink('bug', 'batchClose'); - $misc = common::hasPriv('bug', 'batchClose') ? "onclick=\"setFormAction('$actionLink','hiddenwin')\"" : "class='disabled'"; - echo "
  • " . html::a('#', $lang->bug->close, '', $misc) . "
  • "; + $misc = common::hasPriv('bug', 'batchClose') ? "onclick=\"setFormAction('$actionLink','hiddenwin')\"" : ""; + if($misc) echo "
  • " . html::a('#', $lang->bug->close, '', $misc) . "
  • "; $misc = common::hasPriv('bug', 'batchResolve') ? "id='resolveItem'" : $class; echo "