From e78b1c4331aa86628efeb35fd41d44a3cdbab615 Mon Sep 17 00:00:00 2001 From: sunguangming Date: Wed, 21 Sep 2022 13:22:08 +0800 Subject: [PATCH] * Code for task #69595. --- module/bug/model.php | 3 ++- module/bug/view/edit.html.php | 2 ++ module/bug/view/view.html.php | 4 +++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/module/bug/model.php b/module/bug/model.php index 535e2f5955..489aa0f94f 100644 --- a/module/bug/model.php +++ b/module/bug/model.php @@ -698,7 +698,8 @@ class bugModel extends model ->add('id', $bugID) ->cleanInt('product,module,severity,project,execution,story,task,branch') ->stripTags($this->config->bug->editor->edit['id'], $this->config->allowedTags) - ->setDefault('product,module,execution,story,task,duplicateBug,branch', 0) + ->setDefault('module,execution,story,task,duplicateBug,branch', 0) + ->setDefault('product', $oldBug->product) ->setDefault('openedBuild', '') ->setDefault('os', '') ->setDefault('browser', '') diff --git a/module/bug/view/edit.html.php b/module/bug/view/edit.html.php index 48cd5fea48..8cd8029940 100644 --- a/module/bug/view/edit.html.php +++ b/module/bug/view/edit.html.php @@ -96,6 +96,7 @@ if($this->app->tab == 'project') js::set('objectID', $bug->project);
story->legendBasicInfo;?>
+ shadow)):?> +
bug->product;?> @@ -105,6 +106,7 @@ if($this->app->tab == 'project') js::set('objectID', $bug->project);
bug->module;?> diff --git a/module/bug/view/view.html.php b/module/bug/view/view.html.php index d0a7ad32fd..f95faeab8d 100644 --- a/module/bug/view/view.html.php +++ b/module/bug/view/view.html.php @@ -112,10 +112,12 @@
+ shadow)):?> + type != 'normal'):?> @@ -123,7 +125,7 @@ - +
bug->product;?> product", $product->name, '', "data-app='product'")) echo $product->name;?>
product->branch, $lang->product->branchName[$product->type]);?>
bug->module;?>bug->module;?>