From 8e4fbacfc38d32f0fb5b90c3ce125ab87e6e6767 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 28 Dec 2018 13:43:41 +0800 Subject: [PATCH] Changed RooTicket.valaTicket.bjsTicket.vala --- RooTicket.vala | 2 ++ Ticket.bjs | 2 +- Ticket.vala | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/RooTicket.vala b/RooTicket.vala index 083762b1..d32ad478 100644 --- a/RooTicket.vala +++ b/RooTicket.vala @@ -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); diff --git a/Ticket.bjs b/Ticket.bjs index cd95bbbe..65f547b0 100644 --- a/Ticket.bjs +++ b/Ticket.bjs @@ -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(), 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(), tid);\n \t}\n\n \n\t \n}" }, "default_width" : 500, "$ deletable" : true, diff --git a/Ticket.vala b/Ticket.vala index 12eb4684..8d151301 100644 --- a/Ticket.vala +++ b/Ticket.vala @@ -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(), tid); } - + }); } -- 2.39.2