diff --git a/module/bug/view/browse.html.php b/module/bug/view/browse.html.php index 1adb46068f..b72575dc16 100644 --- a/module/bug/view/browse.html.php +++ b/module/bug/view/browse.html.php @@ -248,18 +248,20 @@ $currentBrowseType = isset($lang->bug->mySelects[$browseType]) && in_array($brow '; } - $actionLink = $this->createLink('testcase', 'batchDelete', "productID=$productID"); - $misc = common::hasPriv('testcase', 'batchDelete') ? "onclick=\"confirmBatchDelete('$actionLink')\"" : $class; - if(common::hasPriv('testcase', 'batchDelete')) echo "
  • " . html::a('#', $lang->delete, '', $misc) . "
  • "; + if(common::hasPriv('testcase', 'batchDelete')) + { + $actionLink = $this->createLink('testcase', 'batchDelete', "productID=$productID"); + $misc = "onclick=\"confirmBatchDelete('$actionLink')\""; + echo "
  • " . html::a('#', $lang->delete, '', $misc) . "
  • "; + } if(common::hasPriv('testcase', 'batchCaseTypeChange')) { @@ -151,7 +152,7 @@ js::set('suiteID', $suiteID); if(common::hasPriv('testcase', 'batchConfirmStoryChange')) { $actionLink = $this->createLink('testcase', 'batchConfirmStoryChange', "productID=$productID"); - $misc = common::hasPriv('testcase', 'batchConfirmStoryChange') ? "onclick=\"setFormAction('$actionLink')\"" : $class; + $misc = "onclick=\"setFormAction('$actionLink')\""; echo "
  • " . html::a('#', $lang->testcase->confirmStoryChange, '', $misc) . "
  • "; } ?>