From e24b38a78773e0810b40e0905bca5563252eb49c Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Sat, 18 Oct 2008 21:30:20 +0000 Subject: Bug 460293: Implement Bugzilla::Object::set_all and have editkeywords.cgi use it Patch By Max Kanat-Alexander r=LpSolit, a=LpSolit --- editkeywords.cgi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'editkeywords.cgi') 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); -- cgit v1.2.3-24-g4f1b