* Finish task #3224.

This commit is contained in:
pengjiangxiu
2017-09-14 11:07:28 +08:00
parent 33d1d0b2d0
commit 844ee7452f
10 changed files with 59 additions and 39 deletions
+5 -2
View File
@@ -265,6 +265,7 @@ class testcase extends control
$precondition = '';
$keywords = '';
$steps = array();
$color = '';
/* If testcaseID large than 0, use this testcase as template. */
if($testcaseID > 0)
@@ -279,8 +280,9 @@ class testcase extends control
$precondition = $testcase->precondition;
$keywords = $testcase->keywords;
$steps = $testcase->steps;
$color = $testcase->color;
}
/* If bugID large than 0, use this bug as template. */
if($bugID > 0)
{
@@ -292,7 +294,7 @@ class testcase extends control
$keywords = $bug->keywords;
$steps = $this->testcase->createStepsFromBug($bug->steps);
}
/* Padding the steps to the default steps count. */
if(count($steps) < $this->config->testcase->defaultSteps)
{
@@ -332,6 +334,7 @@ class testcase extends control
$this->view->currentModuleID = $currentModuleID ? $currentModuleID : (isset($story->module) ? $story->module : 0);
$this->view->stories = $stories;
$this->view->caseTitle = $caseTitle;
$this->view->color = $color;
$this->view->type = $type;
$this->view->stage = $stage;
$this->view->pri = $pri;