summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlav Vitters <bugzilla-mozilla@vitters.nl>2015-09-24 19:00:53 +0200
committerDavid Lawrence <dkl@mozilla.com>2015-09-24 19:00:53 +0200
commitad1dd066b5014a0aa7f67edfddc9ab1a24f0423a (patch)
tree78f144d0b73b573922887ab1d35f45268bbc347d
parentc8f8dd1b5fa77e1cf58ca35fe4bcaf5741b4cc3f (diff)
downloadbugzilla-ad1dd066b5014a0aa7f67edfddc9ab1a24f0423a.tar.gz
bugzilla-ad1dd066b5014a0aa7f67edfddc9ab1a24f0423a.tar.xz
Bug 714525: editmilestones.cgi should use ->set_all
r=dkl,a=glob
-rwxr-xr-xeditmilestones.cgi8
1 files changed, 5 insertions, 3 deletions
diff --git a/editmilestones.cgi b/editmilestones.cgi
index 8052bd1ab..b5188821e 100755
--- a/editmilestones.cgi
+++ b/editmilestones.cgi
@@ -196,9 +196,11 @@ if ($action eq 'update') {
my $milestone = Bugzilla::Milestone->check({ product => $product,
name => $milestone_old_name });
- $milestone->set_name($milestone_name);
- $milestone->set_sortkey($sortkey);
- $milestone->set_is_active($isactive);
+ $milestone->set_all({
+ name => $milestone_name,
+ sortkey => $sortkey,
+ is_active => $isactive,
+ });
my $changes = $milestone->update();
# Reloading the product since the default milestone name
# could have been changed.