summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlav Vitters <bugzilla-mozilla@vitters.nl>2012-01-06 10:37:05 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2012-01-06 10:37:05 +0100
commit1521f85bc95a1be3f41dc667c5492df6731b5612 (patch)
treee8c727feff7a4285668d74d9800656e214fde6c1 /editclassifications.cgi
parentBug 715705: User auto-completion doesn't work for watched users in the email ... (diff)
downloadbugzilla-1521f85bc95a1be3f41dc667c5492df6731b5612.tar.gz
bugzilla-1521f85bc95a1be3f41dc667c5492df6731b5612.tar.bz2
bugzilla-1521f85bc95a1be3f41dc667c5492df6731b5612.zip
Bug 714515: editclassifications.cgi should use ->set_all
r/a=LpSolit
Diffstat (limited to 'editclassifications.cgi')
-rwxr-xr-xeditclassifications.cgi8
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);