From d2d5fc600f72498007d0c78d84f058ae68b79815 Mon Sep 17 00:00:00 2001 From: James Moger Date: Mon, 9 Jun 2014 18:45:22 -0400 Subject: [PATCH] Fix milestone link statii query parameters --- src/main/java/com/gitblit/wicket/pages/TicketsPage.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; -- 2.39.5