* fix a bug for export textcase.
This commit is contained in:
@@ -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 ++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user