summaryrefslogtreecommitdiffstats
path: root/editkeywords.cgi
diff options
context:
space:
mode:
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 1e5d77296..dbc92971d 100755
--- a/editkeywords.cgi
+++ b/editkeywords.cgi
@@ -131,8 +131,10 @@ if ($action eq 'update') {
my $keyword = new Bugzilla::Keyword($key_id)
|| ThrowCodeError('invalid_keyword_id', { id => $key_id });
- $keyword->set_name($cgi->param('name'));
- $keyword->set_description($cgi->param('description'));
+ $keyword->set_all({
+ name => scalar $cgi->param('name'),
+ description => scalar $cgi->param('description'),
+ });
my $changes = $keyword->update();
delete_token($token);