From 14adc0f7da11b364f18e95435497b8069aa9fa30 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Mon, 30 Jun 2014 14:35:30 +0000 Subject: Bug 1028027 - cloning a bug pre-fills mentors with "---" instead of an empty value --- enter_bug.cgi | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'enter_bug.cgi') 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 -- cgit v1.2.3-24-g4f1b