summaryrefslogtreecommitdiffstats
path: root/new_bug.cgi
diff options
context:
space:
mode:
authorSebastin Santy <sebastinssanty@gmail.com>2017-07-18 18:05:42 +0200
committerDylan William Hardison <dylan@hardison.net>2017-07-18 18:05:42 +0200
commitd6c10b6532b45b6f59ec3777fb49d7184db68384 (patch)
tree0f2bb5e02cfbf31affa59860b967bfe09a5fa511 /new_bug.cgi
parente584382118470d374df647336f6ad45311909b34 (diff)
downloadbugzilla-d6c10b6532b45b6f59ec3777fb49d7184db68384.tar.gz
bugzilla-d6c10b6532b45b6f59ec3777fb49d7184db68384.tar.xz
Bug 1381749 - Add keywords to new-bug
Diffstat (limited to 'new_bug.cgi')
-rw-r--r--new_bug.cgi8
1 files changed, 5 insertions, 3 deletions
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')),
});