* finish task #902.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ var browseType = '<?php echo $browseType;?>';
|
||||
<td><?php echo sprintf('%03d', $bug->id) . html::hidden("id[$bug->id]", $bug->id);?></td>
|
||||
<td><?php echo $lang->bug->severityList[$bug->severity]?></td>
|
||||
<td><?php echo $lang->bug->priList[$bug->pri]?></td>
|
||||
<td class='a-left nobr'><?php common::printLink('bug', 'view', "bugID=$bug->id", $bug->title, '', "class='preview'");?></td>
|
||||
<td class='a-left nobr'><?php common::printLink('bug', 'view', "bugID=$bug->id", $bug->title, '', "class='preview'", true, true);?></td>
|
||||
<td><?php echo $lang->bug->statusList[$bug->status];?></td>
|
||||
<td><?php echo html::select("pri[$bug->id]", $lang->task->priList, 3);?></td>
|
||||
<td><?php echo html::select("assignedTo[$bug->id]", $users, '');?></td>
|
||||
|
||||
Reference in New Issue
Block a user