From a4adf15c47119113ab2e93752042528e15fdecfd Mon Sep 17 00:00:00 2001 From: Sebastin Santy Date: Wed, 30 Aug 2017 02:32:50 +0530 Subject: Bug 1392769 - Add other fields to new-bug --- new_bug.cgi | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'new_bug.cgi') diff --git a/new_bug.cgi b/new_bug.cgi index 6a49e0b68..4429717c1 100644 --- a/new_bug.cgi +++ b/new_bug.cgi @@ -58,6 +58,8 @@ if (lc($cgi->request_method) eq 'post') { check_hash_token($token, ['new_bug']); my @keywords = $cgi->param('keywords'); my @groups = $cgi->param('groups'); + my @cc = split /, /, $cgi->param('cc'); + my @bug_mentor = split /, /, $cgi->param('bug_mentor'); my $new_bug = Bugzilla::Bug->create({ short_desc => scalar($cgi->param('short_desc')), product => scalar($cgi->param('product')), @@ -68,8 +70,12 @@ if (lc($cgi->request_method) eq 'post') { rep_platform => 'Unspecified', version => scalar( $cgi->param('version')), keywords => \@keywords, - cc => [], + cc => \@cc, comment => scalar($cgi->param('comment')), + dependson => scalar($cgi->param('dependson')), + blocked => scalar($cgi->param('blocked')), + assigned_to => scalar($cgi->param('assigned_to')), + bug_mentors => \@bug_mentor, }); delete_token($token); -- cgit v1.2.3-24-g4f1b