diff options
author | James Moger <james.moger@gitblit.com> | 2014-03-05 08:04:59 -0500 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-03-05 08:04:59 -0500 |
commit | 830ade081eed7e0290fb7a2e1244a38cf58b7b2c (patch) | |
tree | 17290ca2fe8de874b0aab3a3ee8dd7dd60c0740b /src/main/java/com | |
parent | 9aa11943f821cb6c10a6d1c41c3d2381676f5047 (diff) | |
download | gitblit-830ade081eed7e0290fb7a2e1244a38cf58b7b2c.tar.gz gitblit-830ade081eed7e0290fb7a2e1244a38cf58b7b2c.zip |
Prevent <nil> from being stored as a milestone
Diffstat (limited to 'src/main/java/com')
-rw-r--r-- | src/main/java/com/gitblit/wicket/pages/TicketPage.java | 2 |
1 files changed, 1 insertions, 1 deletions
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);
|