diff options
author | Sebastin Santy <sebastinssanty@gmail.com> | 2017-07-18 18:05:42 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2017-07-18 18:05:42 +0200 |
commit | d6c10b6532b45b6f59ec3777fb49d7184db68384 (patch) | |
tree | 0f2bb5e02cfbf31affa59860b967bfe09a5fa511 /new_bug.cgi | |
parent | e584382118470d374df647336f6ad45311909b34 (diff) | |
download | bugzilla-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.cgi | 8 |
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')), }); |