From f433f23308aa1697615b208dbf349930d4ddb016 Mon Sep 17 00:00:00 2001 From: "chencongzhi520@gmail.com" Date: Sun, 16 Oct 2011 06:40:41 +0000 Subject: [PATCH] + finish task#572 --- module/bug/model.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/module/bug/model.php b/module/bug/model.php index 4ead12474a..7756aeb3f4 100644 --- a/module/bug/model.php +++ b/module/bug/model.php @@ -368,7 +368,11 @@ class bugModel extends model $title = $run->case->title; $caseSteps = $run->case->steps; $stepResults = unserialize($result->stepResults); - $bugSteps = $this->lang->bug->tplStep; + if($run->case->precondition != '') + { + $bugSteps = "

[" . $this->lang->testcase->precondition . "]

" . "\n" . $run->case->precondition; + } + $bugSteps .= $this->lang->bug->tplStep; foreach($caseSteps as $key => $step) { $bugSteps .= ($key + 1) . '. ' .$step->desc . "\n";