summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/wicket/pages/TicketPage.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-06-09 11:33:42 -0400
committerJames Moger <james.moger@gitblit.com>2014-06-09 11:33:42 -0400
commite0331746c1aee48a18ae2954770ca481d49eaf36 (patch)
treeb2f5d85eb12e3adcc8046bfed24082f2428ca028 /src/main/java/com/gitblit/wicket/pages/TicketPage.java
parent7e6932b27785d8dd9309c9a4d7a5fa9824c6b9cf (diff)
downloadgitblit-e0331746c1aee48a18ae2954770ca481d49eaf36.tar.gz
gitblit-e0331746c1aee48a18ae2954770ca481d49eaf36.zip
Link to open tickets view for open milestones from ticket page
Diffstat (limited to 'src/main/java/com/gitblit/wicket/pages/TicketPage.java')
-rw-r--r--src/main/java/com/gitblit/wicket/pages/TicketPage.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main/java/com/gitblit/wicket/pages/TicketPage.java b/src/main/java/com/gitblit/wicket/pages/TicketPage.java
index f7e4ada5..f5f63d23 100644
--- a/src/main/java/com/gitblit/wicket/pages/TicketPage.java
+++ b/src/main/java/com/gitblit/wicket/pages/TicketPage.java
@@ -250,8 +250,12 @@ public class TicketPage extends RepositoryPage {
} else {
// link to milestone query
TicketMilestone milestone = app().tickets().getMilestone(repository, ticket.milestone);
- PageParameters milestoneParameters = new PageParameters();
- milestoneParameters.put("r", repositoryName);
+ PageParameters milestoneParameters;
+ if (milestone.isOpen()) {
+ milestoneParameters = WicketUtils.newOpenTicketsParameter(repositoryName);
+ } else {
+ milestoneParameters = WicketUtils.newRepositoryParameter(repositoryName);
+ }
milestoneParameters.put(Lucene.milestone.name(), ticket.milestone);
int progress = 0;
int open = 0;