* fix the title error when create a case.

This commit is contained in:
wangchunsheng
2013-03-02 06:46:34 +00:00
parent 0f68785a73
commit 20adae2a30
2 changed files with 5 additions and 4 deletions

View File

@@ -186,7 +186,7 @@ class testcase extends control
$type = 'feature';
$stage = '';
$pri = 0;
$title = '';
$caseTitle = '';
$precondition = '';
$keywords = '';
$steps = array();
@@ -200,7 +200,7 @@ class testcase extends control
$stage = $testcase->stage;
$pri = $testcase->pri;
$storyID = $testcase->story;
$title = $testcase->title;
$caseTitle = $testcase->title;
$precondition = $testcase->precondition;
$keywords = $testcase->keywords;
$steps = $testcase->steps;
@@ -213,7 +213,7 @@ class testcase extends control
$type = $bug->type;
$pri = $bug->pri ? $bug->pri : $bug->severity;
$storyID = $bug->story;
$title = $bug->title;
$caseTitle= $bug->title;
$keywords = $bug->keywords;
$steps = $this->testcase->createStepsFromBug($bug->steps);
}
@@ -234,6 +234,7 @@ class testcase extends control
$users = $this->user->getPairs();
$this->view->title = $title;
$this->view->caseTitle = $caseTitle;
$this->view->position = $position;
$this->view->productID = $productID;
$this->view->users = $users;

View File

@@ -48,7 +48,7 @@
</tr>
<tr>
<th class='rowhead'><?php echo $lang->testcase->title;?></th>
<td><?php echo html::input('title', $title, "class='text-1'");?></td>
<td><?php echo html::input('title', $caseTitle, "class='text-1'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->testcase->precondition;?></th>