aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2008-10-18 21:30:20 +0000
committermkanat%bugzilla.org <>2008-10-18 21:30:20 +0000
commite24b38a78773e0810b40e0905bca5563252eb49c (patch)
tree8b7cf32c5fe2eeb1494e5fff685078019d310448 /editkeywords.cgi
parentBug 460581: editgroups should be using Bugzilla::Group->create to make groups (diff)
downloadbugzilla-e24b38a78773e0810b40e0905bca5563252eb49c.tar.gz
bugzilla-e24b38a78773e0810b40e0905bca5563252eb49c.tar.bz2
bugzilla-e24b38a78773e0810b40e0905bca5563252eb49c.zip
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);