From 099770df794c57fbde054eaf34110498695035dc Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Thu, 27 Oct 2011 06:17:55 +0000 Subject: [PATCH] * when create from testcase, change steps's br to \n. --- module/testcase/control.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/module/testcase/control.php b/module/testcase/control.php index 17af18b5a9..a6d3aff9b2 100644 --- a/module/testcase/control.php +++ b/module/testcase/control.php @@ -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('
', '
'), "\n", $bug->steps)), 'expect' => ''); } /* Padding the steps to the default steps count. */