diff options
author | Dylan William Hardison <dylan@mozilla.com> | 2015-05-01 06:03:57 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2015-05-01 06:03:57 +0200 |
commit | c3c2eccd987259a577108fd05f57dc809950b0e6 (patch) | |
tree | 44cbe5438ce68ae36d8f36c205e2e523dd3dd5db /editkeywords.cgi | |
parent | 0e68998f22b847d90753daac3808bedc4500cde6 (diff) | |
download | bugzilla-c3c2eccd987259a577108fd05f57dc809950b0e6.tar.gz bugzilla-c3c2eccd987259a577108fd05f57dc809950b0e6.tar.xz |
Bug 69267: Add the ability to deactivate keywords
r/a=glob
Diffstat (limited to 'editkeywords.cgi')
-rwxr-xr-x | editkeywords.cgi | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/editkeywords.cgi b/editkeywords.cgi index 41496f362..06e28b79a 100755 --- a/editkeywords.cgi +++ b/editkeywords.cgi @@ -71,11 +71,12 @@ if ($action eq 'add') { # if ($action eq 'new') { check_token_data($token, 'add_keyword'); - my $name = $cgi->param('name') || ''; - my $desc = $cgi->param('description') || ''; + my $name = $cgi->param('name') || ''; + my $is_active = $cgi->param('is_active'); + my $desc = $cgi->param('description') || ''; my $keyword = Bugzilla::Keyword->create( - { name => $name, description => $desc }); + { name => $name, is_active => $is_active, description => $desc }); delete_token($token); @@ -123,6 +124,7 @@ if ($action eq 'update') { $keyword->set_all({ name => scalar $cgi->param('name'), description => scalar $cgi->param('description'), + is_active => scalar $cgi->param('is_active'), }); my $changes = $keyword->update(); |