diff options
author | mkanat%bugzilla.org <> | 2008-10-18 23:30:20 +0200 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2008-10-18 23:30:20 +0200 |
commit | e24b38a78773e0810b40e0905bca5563252eb49c (patch) | |
tree | 8b7cf32c5fe2eeb1494e5fff685078019d310448 /editkeywords.cgi | |
parent | d9e6f2408d2d6d0a1a827a54d719bd5d6fb35743 (diff) | |
download | bugzilla-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-x | editkeywords.cgi | 6 |
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); |