From 2034b6ff8fc261b02561cfd3e8982c080eaf9ea5 Mon Sep 17 00:00:00 2001 From: chenfei Date: Wed, 8 Jul 2020 14:40:24 +0800 Subject: [PATCH] * Fix bug #2988. --- module/bug/view/browse.html.php | 16 +++++++++------- module/product/view/browse.html.php | 12 +++++++----- module/project/view/task.html.php | 10 ++++++---- module/testcase/view/browse.html.php | 15 ++++++++------- 4 files changed, 30 insertions(+), 23 deletions(-) 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) . "
  • "; } ?>