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