Fix a bug when updating categories in library

This commit is contained in:
inorichi
2015-12-29 22:57:58 +01:00
parent b0ad72afad
commit f9c13e0ee6
4 changed files with 37 additions and 51 deletions

View File

@@ -29,4 +29,10 @@ public class Category implements Serializable {
c.name = name;
return c;
}
public static Category createDefault() {
Category c = create("Default");
c.id = 0;
return c;
}
}