From aa02e6a8c335a09f619c1d4b5db6c04485098fc7 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Mon, 15 May 2017 16:25:08 +0800 Subject: [PATCH] * fix bug. --- module/bug/view/browse.html.php | 16 ++++------------ module/common/lang/zh-cn.php | 2 +- module/testcase/model.php | 2 +- 3 files changed, 6 insertions(+), 14 deletions(-) diff --git a/module/bug/view/browse.html.php b/module/bug/view/browse.html.php index 4160032063..06fb753284 100644 --- a/module/bug/view/browse.html.php +++ b/module/bug/view/browse.html.php @@ -24,17 +24,9 @@ js::set('flow', $this->config->global->flow);
  • createLink('tutorial', 'wizard', "module=bug&method=create¶ms=$wizardParams"), "" . $lang->bug->create, '', "class='btn btn-primary btn-bug-create'"); - } - else - { - $misc = common::hasPriv('bug', 'create') ? "class='btn btn-primary'" : "class='btn btn-primary disabled'"; - $link = common::hasPriv('bug', 'create') ? $this->createLink('bug', 'create', "productID=$productID&branch=$branch&extra=moduleID=$moduleID") : '#'; - echo html::a($link, "" . $lang->bug->create, '', $misc); - } + $misc = common::hasPriv('bug', 'create') ? "class='btn btn-primary'" : "class='btn btn-primary disabled'"; + $link = common::hasPriv('bug', 'create') ? $this->createLink('bug', 'create', "productID=$productID&branch=$branch&extra=moduleID=$moduleID") : '#'; + echo html::a($link, "" . $lang->bug->create, '', $misc); ?>