From 1521f85bc95a1be3f41dc667c5492df6731b5612 Mon Sep 17 00:00:00 2001 From: Olav Vitters Date: Fri, 6 Jan 2012 10:37:05 +0100 Subject: Bug 714515: editclassifications.cgi should use ->set_all r/a=LpSolit --- editclassifications.cgi | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/editclassifications.cgi b/editclassifications.cgi index 6eb3cb910..835b0a037 100755 --- a/editclassifications.cgi +++ b/editclassifications.cgi @@ -179,9 +179,11 @@ if ($action eq 'update') { my $class_old_name = trim($cgi->param('classificationold') || ''); my $classification = Bugzilla::Classification->check($class_old_name); - $classification->set_name($class_name); - $classification->set_description(scalar $cgi->param('description')); - $classification->set_sortkey(scalar $cgi->param('sortkey')); + $classification->set_all({ + name => $class_name, + description => scalar $cgi->param('description'), + sortkey => scalar $cgi->param('sortkey'), + }); my $changes = $classification->update; delete_token($token); -- cgit v1.2.3-24-g4f1b