summaryrefslogtreecommitdiffstats
path: root/editmilestones.cgi
diff options
context:
space:
mode:
authorTiago Mello <timello@linux.vnet.ibm.com>2010-06-22 04:38:34 +0200
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-06-22 04:38:34 +0200
commit568c989ad58907fc525578555f4a20eadb3644d0 (patch)
treef0f386807773e26ef5c44f7f7730fdf6dd643918 /editmilestones.cgi
parent059dd26f1cf118f33711bb4078df5ae1aef4f36a (diff)
downloadbugzilla-568c989ad58907fc525578555f4a20eadb3644d0.tar.gz
bugzilla-568c989ad58907fc525578555f4a20eadb3644d0.tar.xz
Bug 571003: After changing the name of the default milestone using
editmilestones.cgi, the "Delete" link would show up in the list of milestones when it should not have. r=mkanat, a=mkanat
Diffstat (limited to 'editmilestones.cgi')
-rwxr-xr-xeditmilestones.cgi3
1 files changed, 3 insertions, 0 deletions
diff --git a/editmilestones.cgi b/editmilestones.cgi
index ce622705e..ff5076bee 100755
--- a/editmilestones.cgi
+++ b/editmilestones.cgi
@@ -206,6 +206,9 @@ if ($action eq 'update') {
$milestone->set_name($milestone_name);
$milestone->set_sortkey($sortkey);
my $changes = $milestone->update();
+ # Reloading the product since the default milestone name
+ # could have been changed.
+ $product = new Bugzilla::Product({ name => $product_name });
delete_token($token);