summaryrefslogtreecommitdiffstats
path: root/editkeywords.cgi
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2008-10-18 23:30:20 +0200
committermkanat%bugzilla.org <>2008-10-18 23:30:20 +0200
commite24b38a78773e0810b40e0905bca5563252eb49c (patch)
tree8b7cf32c5fe2eeb1494e5fff685078019d310448 /editkeywords.cgi
parentd9e6f2408d2d6d0a1a827a54d719bd5d6fb35743 (diff)
downloadbugzilla-e24b38a78773e0810b40e0905bca5563252eb49c.tar.gz
bugzilla-e24b38a78773e0810b40e0905bca5563252eb49c.tar.xz
Bug 460293: Implement Bugzilla::Object::set_all and have editkeywords.cgi use it
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
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);