Uncommited changes synced
authorAlan Knowles <alan@roojs.com>
Mon, 17 Dec 2018 06:56:26 +0000 (14:56 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 17 Dec 2018 06:56:26 +0000 (14:56 +0800)
RooTicket.vala

index 2cf43f8..4f81e20 100644 (file)
@@ -27,6 +27,7 @@ public class RooOption : Object
        public RooOption (string id, string name, string display_name)
        {
                this.id = id;
+               this.name = name;
                this.display_name = name;
        }
 
@@ -452,8 +453,18 @@ public class RooTicket : Object
        }
        public void loadProjectOptions(string pid)
        {
-
                var rt = RooTicket.singleton();
+               rt.milestones = new Gee.ArrayList<RooOption>();
+               rt.priorities =  new Gee.ArrayList<RooOption>();
+               rt.serverities =  new Gee.ArrayList<RooOption>();
+               rt.classifications  =  new Gee.ArrayList<RooOption>();
+               rt.developers =  new Gee.ArrayList<RooOption>();
+               if (pid == "") {
+                       return;
+               }
+               
+
 
                var table = new GLib.HashTable<string, string>(str_hash, str_equal);