projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e71eae
)
RooTicket.vala
author
Alan Knowles
<alan@roojs.com>
Wed, 31 Oct 2018 05:15:31 +0000
(13:15 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 31 Oct 2018 05:15:31 +0000
(13:15 +0800)
RooTicket.vala
patch
|
blob
|
history
diff --git
a/RooTicket.vala
b/RooTicket.vala
index
232b918
..
ca3c101
100644
(file)
--- a/
RooTicket.vala
+++ b/
RooTicket.vala
@@
-38,6
+38,16
@@
class RooTicket : Object
GLib.debug("ADD ticket %s : %s : %s", add.id, add.summary, add.project_id_name);
}
+ public RooTicket? getById(string id)
+ {
+ foreach(var t in this.tickets) {
+ if (t.id == id) {
+ return t;
+ }
+ }
+ return null;
+
+ }
public void loadTickets()
{