From: James Moger Date: Mon, 9 Jun 2014 22:45:22 +0000 (-0400) Subject: Fix milestone link statii query parameters X-Git-Tag: v1.6.0~24^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d2d5fc600f72498007d0c78d84f058ae68b79815;p=gitblit.git Fix milestone link statii query parameters --- diff --git a/src/main/java/com/gitblit/wicket/pages/TicketsPage.java b/src/main/java/com/gitblit/wicket/pages/TicketsPage.java index dfa7b021..658cddec 100644 --- a/src/main/java/com/gitblit/wicket/pages/TicketsPage.java +++ b/src/main/java/com/gitblit/wicket/pages/TicketsPage.java @@ -536,7 +536,13 @@ public class TicketsPage extends RepositoryPage { item.add(entryPanel); final TicketMilestone tm = item.getModelObject(); - PageParameters params = queryParameters(null, tm.name, null, null, null, true, 1); + String [] states; + if (tm.isOpen()) { + states = TicketsUI.openStatii; + } else { + states = TicketsUI.closedStatii; + } + PageParameters params = queryParameters(null, tm.name, states, null, null, true, 1); entryPanel.add(new LinkPanel("milestoneName", null, tm.name, TicketsPage.class, params).setRenderBodyOnly(true)); String css;