summaryrefslogtreecommitdiffstats
path: root/editkeywords.cgi
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@mozilla.com>2015-05-19 05:48:57 +0200
committerByron Jones <glob@mozilla.com>2015-05-19 05:48:57 +0200
commit64fd94e3c85af86131f34694a188aca380462f99 (patch)
treea97a8168b2bef327e9d0a005b0d5493d159d7ac5 /editkeywords.cgi
parent1e23e69630c37096d05e9a3ef31e824e912987d3 (diff)
downloadbugzilla-64fd94e3c85af86131f34694a188aca380462f99.tar.gz
bugzilla-64fd94e3c85af86131f34694a188aca380462f99.tar.xz
Bug 1160430: Backport bug 69267 to BMO (Add the ability to deactivate keywords)
Diffstat (limited to 'editkeywords.cgi')
-rwxr-xr-xeditkeywords.cgi6
1 files changed, 4 insertions, 2 deletions
diff --git a/editkeywords.cgi b/editkeywords.cgi
index fd7eaa3e5..2f0cd563b 100755
--- a/editkeywords.cgi
+++ b/editkeywords.cgi
@@ -82,8 +82,9 @@ 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 });
@@ -134,6 +135,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();