From c290f08bbecc14b8abca9ba339d43ff6295ee90c Mon Sep 17 00:00:00 2001 From: wangyidong Date: Wed, 21 Nov 2012 02:27:42 +0000 Subject: [PATCH] * finish task #902. --- module/common/control.php | 7 +++++-- module/project/view/importbug.html.php | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/module/common/control.php b/module/common/control.php index b0a11f1211..37adbcb57c 100644 --- a/module/common/control.php +++ b/module/common/control.php @@ -200,10 +200,13 @@ class common extends control * @access public * @return bool */ - public static function printLink($module, $method, $vars = '', $label, $target = '', $misc = '', $newline = true) + public static function printLink($module, $method, $vars = '', $label, $target = '', $misc = '', $newline = true, $onlyBody = false) { if(!common::hasPriv($module, $method)) return false; - echo html::a(helper::createLink($module, $method, $vars), $label, $target, $misc, $newline); + global $config; + $concat = $config->requestType == 'GET' ? '&' : '?'; + $onlyBody = $onlyBody ? $concat . "onlybody=yes" : ''; + echo html::a(helper::createLink($module, $method, $vars) . $onlyBody, $label, $target, $misc, $newline); return true; } diff --git a/module/project/view/importbug.html.php b/module/project/view/importbug.html.php index 574dc6a24e..0986eb9225 100755 --- a/module/project/view/importbug.html.php +++ b/module/project/view/importbug.html.php @@ -43,7 +43,7 @@ var browseType = ''; id) . html::hidden("id[$bug->id]", $bug->id);?> bug->severityList[$bug->severity]?> bug->priList[$bug->pri]?> - id", $bug->title, '', "class='preview'");?> + id", $bug->title, '', "class='preview'", true, true);?> bug->statusList[$bug->status];?> id]", $lang->task->priList, 3);?> id]", $users, '');?>