From 78daefb38bba0828ef4b8bf39cf22f7afb1220a9 Mon Sep 17 00:00:00 2001 From: "chencongzhi520@gmail.com" Date: Sat, 22 Oct 2011 05:39:43 +0000 Subject: [PATCH] * code for task: convert a testcase to a bug --- module/testtask/view/cases.html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/testtask/view/cases.html.php b/module/testtask/view/cases.html.php index 00486cb07d..dc5a6f098e 100644 --- a/module/testtask/view/cases.html.php +++ b/module/testtask/view/cases.html.php @@ -73,7 +73,7 @@ var moduleID = ''; id", $lang->testtask->runCase, '', 'class="iframe"'); common::printLink('testtask', 'results', "id=$run->id", $lang->testtask->results, '', 'class="iframe"'); - common::printLink('bug', 'create', "product=$productID&extra=projectID=$task->project,buildID=$task->build,caseID=$run->case,runID=$run->id", $lang->testtask->createBug); + if($run->lastResult == 'fail') common::printLink('bug', 'create', "product=$productID&extra=projectID=$task->project,buildID=$task->build,caseID=$run->case,runID=$run->id", $lang->testtask->createBug); common::printLink('testtask', 'unlinkcase', "id=$run->id", $lang->testtask->unlinkCase, 'hiddenwin'); ?>