summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@redhat.com>2014-06-30 16:35:30 +0200
committerDavid Lawrence <dkl@redhat.com>2014-06-30 16:35:30 +0200
commit14adc0f7da11b364f18e95435497b8069aa9fa30 (patch)
tree77899c498a597170092973ec4f28642abe00d8bd
parente2b27e46426ed1d32cc521229d920583b647fd7c (diff)
downloadbugzilla-14adc0f7da11b364f18e95435497b8069aa9fa30.tar.gz
bugzilla-14adc0f7da11b364f18e95435497b8069aa9fa30.tar.xz
Bug 1028027 - cloning a bug pre-fills mentors with "---" instead of an empty value
-rwxr-xr-xenter_bug.cgi6
-rw-r--r--extensions/Review/template/en/default/hook/bug/create/create-after_custom_fields.html.tmpl1
2 files changed, 7 insertions, 0 deletions
diff --git a/enter_bug.cgi b/enter_bug.cgi
index 4a3155e42..f0c86b9ee 100755
--- a/enter_bug.cgi
+++ b/enter_bug.cgi
@@ -297,6 +297,9 @@ if ($cloned_bug_id) {
# BMO Bug 1019747
$vars->{'cloned_bug'} = $cloned_bug;
+ # BMO Allow mentors to be cloned as well
+ $vars->{'bug_mentors'} = join(', ', map { $_->login } @{ $cloned_bug->mentors });
+
} # end of cloned bug entry form
else {
@@ -324,6 +327,9 @@ else {
$vars->{'comment'} = formvalue('comment');
$vars->{'comment_is_private'} = formvalue('comment_is_private');
+ # BMO Add support for mentors
+ $vars->{'bug_mentors'} = formvalue('bug_mentors');
+
} # end of normal/bookmarked entry form
diff --git a/extensions/Review/template/en/default/hook/bug/create/create-after_custom_fields.html.tmpl b/extensions/Review/template/en/default/hook/bug/create/create-after_custom_fields.html.tmpl
index 6d890d975..4a8f05755 100644
--- a/extensions/Review/template/en/default/hook/bug/create/create-after_custom_fields.html.tmpl
+++ b/extensions/Review/template/en/default/hook/bug/create/create-after_custom_fields.html.tmpl
@@ -14,6 +14,7 @@
name = "bug_mentors"
size = 30
multiple = 5
+ value = bug_mentors
%]
</td>
</tr>