From 830ade081eed7e0290fb7a2e1244a38cf58b7b2c Mon Sep 17 00:00:00 2001 From: James Moger Date: Wed, 5 Mar 2014 08:04:59 -0500 Subject: [PATCH] Prevent from being stored as a milestone --- src/main/java/com/gitblit/wicket/pages/TicketPage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gitblit/wicket/pages/TicketPage.java b/src/main/java/com/gitblit/wicket/pages/TicketPage.java index 3eb88dd5..dde31a2a 100644 --- a/src/main/java/com/gitblit/wicket/pages/TicketPage.java +++ b/src/main/java/com/gitblit/wicket/pages/TicketPage.java @@ -456,7 +456,7 @@ public class TicketPage extends TicketBasePage { public void onClick(AjaxRequestTarget target) { TicketMilestone milestone = getModel().getObject(); Change change = new Change(user.username); - if (NIL.equals(milestone.name)) { + if (NIL.equals(milestone.name) || ESC_NIL.equals(milestone.name)) { change.setField(Field.milestone, ""); } else { change.setField(Field.milestone, milestone.name); -- 2.39.5