diff options
author | Olav Vitters <bugzilla-mozilla@vitters.nl> | 2012-01-06 10:37:05 +0100 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2012-01-06 10:37:05 +0100 |
commit | 1521f85bc95a1be3f41dc667c5492df6731b5612 (patch) | |
tree | e8c727feff7a4285668d74d9800656e214fde6c1 | |
parent | b77b425d6e453fb39911492f08d89879dfb5594f (diff) | |
download | bugzilla-1521f85bc95a1be3f41dc667c5492df6731b5612.tar.gz bugzilla-1521f85bc95a1be3f41dc667c5492df6731b5612.tar.xz |
Bug 714515: editclassifications.cgi should use ->set_all
r/a=LpSolit
-rwxr-xr-x | editclassifications.cgi | 8 |
1 files 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); |