]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 571003: After changing the name of the default milestone using
authorTiago Mello <timello@linux.vnet.ibm.com>
Tue, 22 Jun 2010 02:38:34 +0000 (19:38 -0700)
committerMax Kanat-Alexander <mkanat@bugzilla.org>
Tue, 22 Jun 2010 02:38:34 +0000 (19:38 -0700)
editmilestones.cgi, the "Delete" link would show up in the list
of milestones when it should not have.
r=mkanat, a=mkanat

editmilestones.cgi

index ce622705efcded12f7349c3bd82573bc14e39c0e..ff5076bee4141d8f37030835b7456a2c974f50fa 100755 (executable)
@@ -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);