* finish the task #655 and #639 ang fix the bug #277.

This commit is contained in:
shiyangyangwork@yahoo.cn
2011-12-14 08:56:06 +00:00
parent 017192c8ad
commit 30a1bee9a4
9 changed files with 49 additions and 81 deletions
+3 -3
View File
@@ -25,9 +25,9 @@
common::printLink('bug', 'edit', $params, $lang->bug->buttonEdit);
if(!($bug->status == 'active' and common::printLink('bug', 'resolve', $params, $lang->bug->buttonResolve))) echo $lang->bug->buttonResolve . ' ';
if(!($bug->status == 'resolved' and common::printLink('bug', 'close', $params, $lang->bug->buttonClose))) echo $lang->bug->buttonClose . ' ';
if($bug->status == 'active' and common::hasPriv('bug', 'resolve'))
if($bug->status == 'active' and common::hasPriv('story', 'create'))
{
common::printLink('bug', 'resolve', "$params&toStory=true", $lang->bug->resolutionList['tostory']) . ' ';
common::printLink('story', 'create', "product=$bug->product&module=0&story=0&project=0&bugID=$bug->id", $lang->bug->resolutionList['tostory']) . ' ';
}
else
{
@@ -62,7 +62,7 @@
if(!($bug->status == 'resolved' and common::printLink('bug', 'close', $params, $lang->bug->buttonClose))) echo $lang->bug->buttonClose . ' ';
if($bug->status == 'active' and common::hasPriv('bug', 'resolve'))
{
common::printLink('bug', 'resolve', "$params&toStory=true", $lang->bug->resolutionList['tostory']) . ' ';
common::printLink('story', 'create', "product=$bug->product&module=0&story=0&project=0&bugID=$bug->id", $lang->bug->resolutionList['tostory']) . ' ';
}
else
{