* fix the bug of 1.2.

This commit is contained in:
wangchunsheng
2010-08-07 02:12:20 +00:00
parent 18004ae336
commit 64c012b3e5
8 changed files with 20 additions and 19 deletions
+3 -3
View File
@@ -280,15 +280,15 @@ class bugModel extends model
$title = $run->case->title;
$caseSteps = $run->case->steps;
$stepResults = unserialize($result->stepResults);
$bugSteps = $this->lang->bug->tblStep;
$bugSteps = $this->lang->bug->tplStep;
foreach($caseSteps as $key => $step)
{
$bugSteps .= ($key + 1) . '. ' .$step->desc . "\n";
if($stepResults[$step->id]['result'] == 'fail')
{
$bugSteps .= $this->lang->bug->tblResult;
$bugSteps .= $this->lang->bug->tplResult;
$bugSteps .= $stepResults[$step->id]['real'] . "\n";
$bugSteps .= $this->lang->bug->tblExpect;
$bugSteps .= $this->lang->bug->tplExpect;
$bugSteps .= $step->expect;
break;
}