NewBranch.bjs
[gitlive] / Ticket.vala
index 9068491..9857b7f 100644 (file)
@@ -67,8 +67,22 @@ public class Ticket : Object
                        return;
                }
                 
-               return; 
                 
+               var tid = RooTicket.singleton().createTicket(
+               
+                       _this.project_id.selectedProjectId(),
+               
+                       _this.milestone_id.selectedMilestoneId(),
+                       _this.priority_id.selectedPriorityId() ,
+                       _this.classification_id.selectedClassificationId() ,
+                       _this.developer_id.selectedDeveloperId(),
+                       _this.summary.el.get_text() ,
+                       _this.description.el.buffer.text 
+               );
+               
+               if (this.repo != null) {
+                       NewBranch.singleton().show(this.repo, new Gee.ArrayList<GitMonitorQueue>(), tid);
+               }
                 
         
                 
@@ -1212,6 +1226,7 @@ public class Ticket : Object
                if (invalid) {
                        return;
                }
+               GLib.debug("for is valid");
                
                _this.el.response(1);
             });