Changed RooTicket.valaTicket.bjsTicket.vala wip_alan_T5638_severity_not_saved
authorAlan Knowles <alan@roojs.com>
Fri, 28 Dec 2018 05:43:41 +0000 (13:43 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 28 Dec 2018 05:43:41 +0000 (13:43 +0800)
RooTicket.vala
Ticket.bjs
Ticket.vala

index 083762b..d32ad47 100644 (file)
@@ -408,6 +408,7 @@ public class RooTicket : Object
                        string project_id,
                        string milestone_id,
                        string priority_id,
+                       string severity_id,                     
                        string classification_id,
                        string developer_id,
                        string summary,
@@ -420,6 +421,7 @@ public class RooTicket : Object
                table.insert("project_id", project_id);
                table.insert("milestone_id", milestone_id);
                table.insert("priority_id", priority_id);
+               table.insert("severity_id", classification_id);         
                table.insert("classification_id", classification_id);
                table.insert("developer_id", developer_id);
                table.insert("summary", summary);
index cd95bbb..65f547b 100644 (file)
@@ -10,7 +10,7 @@
   {
    "listeners" : {
     "delete_event" : "(self, event) => {\n    this.el.hide();\n    return true; \n    //test  \n}\n ",
-    "response" : " (self, response_id) =>  { \n  \n\tGLib.debug(\"got %d\", (int) response_id);\n\tif (response_id < 1) {\n\t    _this.el.hide();\t\n\t    this.running = false; \n\t \treturn;\n\t}\n\t \n\t \n\tvar tid = RooTicket.singleton().createTicket(\n\t\n\t\t_this.project_id.selectedProjectId(),\n\t\n\t\t_this.milestone_id.selectedMilestoneId(),\n\t\t_this.priority_id.selectedPriorityId() ,\n\t\t_this.classification_id.selectedClassificationId() ,\n\t\t_this.developer_id.selectedDeveloperId(),\n\t\t_this.summary.el.get_text() ,\n\t\t_this.description.el.buffer.text \n\t);\n\tthis.el.hide();\n    this.running = false; \n\tif (this.repo != null) {\n\t \tNewBranch.singleton().show(this.repo, new Gee.ArrayList<GitMonitorQueue>(), tid);\n \t}\n\n\n\t \n}"
+    "response" : " (self, response_id) =>  { \n  \n\tGLib.debug(\"got %d\", (int) response_id);\n\tif (response_id < 1) {\n\t    _this.el.hide();\t\n\t    this.running = false; \n\t \treturn;\n\t}\n\t \n\t \n\tvar tid = RooTicket.singleton().createTicket(\n\t\n\t\t_this.project_id.selectedProjectId(),\n\t\n\t\t_this.milestone_id.selectedMilestoneId(),\n\t\t_this.priority_id.selectedPriorityId() ,\n\t\t_this.severity_id.selectedSeverityId() ,\t\t\n\t\t_this.classification_id.selectedClassificationId() ,\n\t\t_this.developer_id.selectedDeveloperId(),\n\t\t_this.summary.el.get_text() ,\n\t\t_this.description.el.buffer.text \n\t);\n\tthis.el.hide();\n    this.running = false; \n\tif (this.repo != null) {\n\t \tNewBranch.singleton().show(this.repo, new Gee.ArrayList<GitMonitorQueue>(), tid);\n \t}\n\n  \n\t \n}"
    },
    "default_width" : 500,
    "$ deletable" : true,
index 12eb468..8d15130 100644 (file)
@@ -76,6 +76,7 @@ public class Ticket : Object
                
                        _this.milestone_id.selectedMilestoneId(),
                        _this.priority_id.selectedPriorityId() ,
+                       _this.severity_id.selectedSeverityId() ,                
                        _this.classification_id.selectedClassificationId() ,
                        _this.developer_id.selectedDeveloperId(),
                        _this.summary.el.get_text() ,
@@ -87,7 +88,7 @@ public class Ticket : Object
                        NewBranch.singleton().show(this.repo, new Gee.ArrayList<GitMonitorQueue>(), tid);
                }
         
-        
+          
                 
         });
     }