diff options
author | James Moger <james.moger@gitblit.com> | 2014-06-09 11:33:42 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-06-09 11:33:42 -0400 |
commit | e0331746c1aee48a18ae2954770ca481d49eaf36 (patch) | |
tree | b2f5d85eb12e3adcc8046bfed24082f2428ca028 | |
parent | 7e6932b27785d8dd9309c9a4d7a5fa9824c6b9cf (diff) | |
download | gitblit-e0331746c1aee48a18ae2954770ca481d49eaf36.tar.gz gitblit-e0331746c1aee48a18ae2954770ca481d49eaf36.zip |
Link to open tickets view for open milestones from ticket page
-rw-r--r-- | src/main/java/com/gitblit/wicket/pages/TicketPage.java | 8 |
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;
|