summaryrefslogtreecommitdiffstats
path: root/enter_bug.cgi
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 /enter_bug.cgi
parente2b27e46426ed1d32cc521229d920583b647fd7c (diff)
downloadbugzilla-14adc0f7da11b364f18e95435497b8069aa9fa30.tar.gz
bugzilla-14adc0f7da11b364f18e95435497b8069aa9fa30.tar.xz
Bug 1028027 - cloning a bug pre-fills mentors with "---" instead of an empty value
Diffstat (limited to 'enter_bug.cgi')
-rwxr-xr-xenter_bug.cgi6
1 files changed, 6 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