]> source.dussan.org Git - gitblit.git/commitdiff
Prevent <nil> from being stored as a milestone
authorJames Moger <james.moger@gitblit.com>
Wed, 5 Mar 2014 13:04:59 +0000 (08:04 -0500)
committerJames Moger <james.moger@gitblit.com>
Wed, 5 Mar 2014 13:04:59 +0000 (08:04 -0500)
src/main/java/com/gitblit/wicket/pages/TicketPage.java

index 3eb88dd5ab1dfd44812c62601e962b50f2776f13..dde31a2a64232d2b2ad2194fb1bff3cf0da96a15 100644 (file)
@@ -456,7 +456,7 @@ public class TicketPage extends TicketBasePage {
                                                public void onClick(AjaxRequestTarget target) {\r
                                                        TicketMilestone milestone = getModel().getObject();\r
                                                        Change change = new Change(user.username);\r
-                                                       if (NIL.equals(milestone.name)) {\r
+                                                       if (NIL.equals(milestone.name) || ESC_NIL.equals(milestone.name)) {\r
                                                                change.setField(Field.milestone, "");\r
                                                        } else {\r
                                                                change.setField(Field.milestone, milestone.name);\r