Commit 1521f85b authored by Olav Vitters's avatar Olav Vitters Committed by Frédéric Buclin

Bug 714515: editclassifications.cgi should use ->set_all

r/a=LpSolit
parent b77b425d
...@@ -179,9 +179,11 @@ if ($action eq 'update') { ...@@ -179,9 +179,11 @@ if ($action eq 'update') {
my $class_old_name = trim($cgi->param('classificationold') || ''); my $class_old_name = trim($cgi->param('classificationold') || '');
my $classification = Bugzilla::Classification->check($class_old_name); my $classification = Bugzilla::Classification->check($class_old_name);
$classification->set_name($class_name); $classification->set_all({
$classification->set_description(scalar $cgi->param('description')); name => $class_name,
$classification->set_sortkey(scalar $cgi->param('sortkey')); description => scalar $cgi->param('description'),
sortkey => scalar $cgi->param('sortkey'),
});
my $changes = $classification->update; my $changes = $classification->update;
delete_token($token); delete_token($token);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment