From 787edc03770857abdc5438d192df2b05fa4027f5 Mon Sep 17 00:00:00 2001 From: wyd621 Date: Thu, 5 Jun 2014 00:30:35 +0000 Subject: [PATCH] * fix a bug for export textcase. --- module/testcase/control.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/module/testcase/control.php b/module/testcase/control.php index 69b447f6d4..52dbbe1a30 100644 --- a/module/testcase/control.php +++ b/module/testcase/control.php @@ -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'))) ? '
' : "\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 ++; } }