From bd2bdbefe4385bde1f598c0bf454c1cbaf2937bb Mon Sep 17 00:00:00 2001 From: tanghucheng Date: Thu, 5 Jan 2023 12:29:49 +0800 Subject: [PATCH] * Fix bug #31454. --- module/testcase/control.php | 3 +++ module/testcase/view/create.html.php | 17 ++++++++++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/module/testcase/control.php b/module/testcase/control.php index 324f8dfada..92001d6921 100644 --- a/module/testcase/control.php +++ b/module/testcase/control.php @@ -449,6 +449,7 @@ class testcase extends control $keywords = ''; $steps = array(); $color = ''; + $auto = ''; /* If testcaseID large than 0, use this testcase as template. */ if($testcaseID > 0) @@ -464,6 +465,7 @@ class testcase extends control $keywords = $testcase->keywords; $steps = $testcase->steps; $color = $testcase->color; + $auto = $testcase->auto; } /* If bugID large than 0, use this bug as template. */ @@ -586,6 +588,7 @@ class testcase extends control $this->view->branch = $branch; $this->view->product = $product; $this->view->branches = $branches; + $this->view->auto = $auto; $this->display(); } diff --git a/module/testcase/view/create.html.php b/module/testcase/view/create.html.php index c22b1b4bb9..f1e8b2c1e4 100644 --- a/module/testcase/view/create.html.php +++ b/module/testcase/view/create.html.php @@ -73,7 +73,7 @@ foreach(explode(',', $config->testcase->create->requiredFields) as $field) testcase->typeList, $type, "class='form-control chosen'");?>
- $lang->testcase->showAutoCase), '', "id='autocase' title='{$lang->testcase->showAutoCase}'");?> + $lang->testcase->showAutoCase), $auto, "id='autocase' title='{$lang->testcase->showAutoCase}'");?>
@@ -278,14 +278,25 @@ foreach(explode(',', $config->testcase->create->requiredFields) as $field) testcase->module)?>