* fix a bug for export textcase.

This commit is contained in:
wyd621
2014-06-05 00:30:35 +00:00
parent d27bf1613d
commit 787edc0377
+4 -2
View File
@@ -620,6 +620,8 @@ class testcase extends control
foreach($cases as $case)
{
$case->title = htmlspecialchars_decode($case->title);
$relatedModuleIdList[$case->module] = $case->module;
$relatedStoryIdList[$case->story] = $case->story;
$relatedCaseIdList[$case->linkCase] = $case->linkCase;
@@ -650,8 +652,8 @@ class testcase extends control
{
if($step->version != $case->version) continue;
$sign = (in_array($this->post->fileType, array('html', 'xml'))) ? '<br />' : "\n";
$case->stepDesc .= $i . ". " . $step->desc . $sign;
$case->stepExpect .= $i . ". " . $step->expect . $sign;
$case->stepDesc .= $i . ". " . htmlspecialchars_decode($step->desc) . $sign;
$case->stepExpect .= $i . ". " . htmlspecialchars_decode($step->expect) . $sign;
$i ++;
}
}