summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/tickets/TicketLabel.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-04-25 23:52:30 -0400
committerJames Moger <james.moger@gitblit.com>2014-05-01 14:27:28 -0400
commitce048e750f7ae986dddfc8ab9b57750114d2b7b9 (patch)
tree05c085d9fdfaf00109a31fd98ef12f41012b2357 /src/main/java/com/gitblit/tickets/TicketLabel.java
parent16ef06d210bec7dd5b44d82f70d9f7bb9e4dbf6f (diff)
downloadgitblit-ce048e750f7ae986dddfc8ab9b57750114d2b7b9.tar.gz
gitblit-ce048e750f7ae986dddfc8ab9b57750114d2b7b9.zip
Create and update milestone pages with rename support
Diffstat (limited to 'src/main/java/com/gitblit/tickets/TicketLabel.java')
-rw-r--r--src/main/java/com/gitblit/tickets/TicketLabel.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main/java/com/gitblit/tickets/TicketLabel.java b/src/main/java/com/gitblit/tickets/TicketLabel.java
index 686ce88b..a7f0ebec 100644
--- a/src/main/java/com/gitblit/tickets/TicketLabel.java
+++ b/src/main/java/com/gitblit/tickets/TicketLabel.java
@@ -30,14 +30,17 @@ public class TicketLabel implements Serializable {
private static final long serialVersionUID = 1L;
- public final String name;
+ public String name;
public String color;
public List<QueryResult> tickets;
-
public TicketLabel(String name) {
+ setName(name);
+ }
+
+ public void setName(String name) {
this.name = name;
this.color = StringUtils.getColor(name);
}