* when create from testcase, change steps's br to \n.

This commit is contained in:
wangchunsheng
2011-10-27 06:17:55 +00:00
parent 3b06950f57
commit 099770df79
+1 -2
View File
@@ -212,13 +212,12 @@ class testcase extends control
if(isset($bugID))
{
$bug = $this->loadModel('bug')->getById($bugID);
$type = $bug->type;
$pri = $bug->severity;
$storyID = $bug->story;
$title = $bug->title;
$keywords = $bug->keywords;
$steps[] = (object)array('desc'=>strip_tags($bug->steps), 'expect'=>'');
$steps[] = (object)array('desc' => strip_tags(str_replace(array('<br />', '<br>'), "\n", $bug->steps)), 'expect' => '');
}
/* Padding the steps to the default steps count. */