diff options
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(); |