Commit d30c8993 authored by David Lawrence's avatar David Lawrence

Bug 1177267: When adding a new keyword, it should be active by default.…

Bug 1177267: When adding a new keyword, it should be active by default. Currently a new keyword is disabled. r=dylan,a=dkl
parent 9481baff
...@@ -71,12 +71,11 @@ if ($action eq 'add') { ...@@ -71,12 +71,11 @@ if ($action eq 'add') {
# #
if ($action eq 'new') { if ($action eq 'new') {
check_token_data($token, 'add_keyword'); check_token_data($token, 'add_keyword');
my $name = $cgi->param('name') || ''; my $name = $cgi->param('name') || '';
my $is_active = $cgi->param('is_active'); my $desc = $cgi->param('description') || '';
my $desc = $cgi->param('description') || '';
my $keyword = Bugzilla::Keyword->create( my $keyword = Bugzilla::Keyword->create(
{ name => $name, is_active => $is_active, description => $desc }); { name => $name, description => $desc });
delete_token($token); delete_token($token);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment