]> source.dussan.org Git - gitblit.git/commitdiff
Fix milestone link statii query parameters 99/99/1
authorJames Moger <james.moger@gitblit.com>
Mon, 9 Jun 2014 22:45:22 +0000 (18:45 -0400)
committerJames Moger <james.moger@gitblit.com>
Mon, 9 Jun 2014 22:45:22 +0000 (18:45 -0400)
src/main/java/com/gitblit/wicket/pages/TicketsPage.java

index dfa7b0215a7c58063c3e1c2e6fd567a195ec0938..658cddec819d7c2ede3582ad8457a5a76d801864 100644 (file)
@@ -536,7 +536,13 @@ public class TicketsPage extends RepositoryPage {
                                item.add(entryPanel);\r
 \r
                                final TicketMilestone tm = item.getModelObject();\r
-                               PageParameters params = queryParameters(null, tm.name, null, null, null, true, 1);\r
+                               String [] states;\r
+                               if (tm.isOpen()) {\r
+                                       states = TicketsUI.openStatii;\r
+                               } else {\r
+                                       states = TicketsUI.closedStatii;\r
+                               }\r
+                               PageParameters params = queryParameters(null, tm.name, states, null, null, true, 1);\r
                                entryPanel.add(new LinkPanel("milestoneName", null, tm.name, TicketsPage.class, params).setRenderBodyOnly(true));\r
 \r
                                String css;\r