From d6c10b6532b45b6f59ec3777fb49d7184db68384 Mon Sep 17 00:00:00 2001 From: Sebastin Santy Date: Tue, 18 Jul 2017 21:35:42 +0530 Subject: Bug 1381749 - Add keywords to new-bug --- new_bug.cgi | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'new_bug.cgi') diff --git a/new_bug.cgi b/new_bug.cgi index 8462bb6ff..2e903cfce 100644 --- a/new_bug.cgi +++ b/new_bug.cgi @@ -42,13 +42,14 @@ use List::MoreUtils qw(uniq); my $user = Bugzilla->login(LOGIN_REQUIRED); -my $cgi = Bugzilla->cgi; +my $cgi = Bugzilla->cgi; my $template = Bugzilla->template; -my $vars = {}; +my $vars = {}; if (lc($cgi->request_method) eq 'post') { my $token = $cgi->param('token'); check_hash_token($token, ['new_bug']); + my @keywords = $cgi->param('keywords'); my $new_bug = Bugzilla::Bug->create({ short_desc => scalar($cgi->param('short_desc')), product => scalar($cgi->param('product')), @@ -57,7 +58,8 @@ if (lc($cgi->request_method) eq 'post') { groups => [], op_sys => 'Unspecified', rep_platform => 'Unspecified', - version => join(' ', split('_', scalar($cgi->param('version')))), + version => scalar( $cgi->param('version')), + keywords => \@keywords, cc => [], comment => scalar($cgi->param('comment')), }); -- cgit v1.2.3-24-g4f1b