* adjust number.

This commit is contained in:
wangyidong
2014-08-25 06:18:21 +00:00
parent 2cb64ce5c8
commit ce1b8874c1
+11 -5
View File
@@ -827,26 +827,32 @@ class bugModel extends model
$bugSteps .= $this->lang->bug->tplStep;
if(!empty($stepResults))
{
$i = 0;
foreach($caseSteps as $key => $step)
{
if(!in_array($step->id, $steps)) continue;
$bugSteps .= ($key + 1) . '. ' . $step->desc . "<br />";
$i++;
$bugSteps .= $i . '. ' . $step->desc . "<br />";
}
$bugSteps .= $this->lang->bug->tplResult;
$i = 0;
foreach($caseSteps as $key => $step)
{
if(empty($stepResults[$step->id]['real'])) continue;
if(!in_array($step->id, $steps)) continue;
$bugSteps .= ($key + 1) . '. ' . $stepResults[$step->id]['real'] . "<br />";
$i++;
if(empty($stepResults[$step->id]['real'])) continue;
$bugSteps .= $i . '. ' . $stepResults[$step->id]['real'] . "<br />";
}
$bugSteps .= $this->lang->bug->tplExpect;
$i = 0;
foreach($caseSteps as $key => $step)
{
if(!$step->expect) continue;
if(!in_array($step->id, $steps)) continue;
$bugSteps .= ($key + 1) . '. ' . $step->expect . "<br />";
$i++;
if(!$step->expect) continue;
$bugSteps .= $i . '. ' . $step->expect . "<br />";
}
}