projects
/
gitlive
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix #5617 - issue with create ticket not emptying fields
[gitlive]
/
NewBranch.vala
diff --git
a/NewBranch.vala
b/NewBranch.vala
index
e516aa5
..
c9bff82
100644
(file)
--- a/
NewBranch.vala
+++ b/
NewBranch.vala
@@
-110,8
+110,7
@@
public class NewBranch : Object
this.repo = repo;
this.repo = repo;
-
-
+
this.el.move((Gdk.Screen.width() / 2)- 250 ,0);
this.el.set_default_size( 500,200); // not sure why it grows..
this.el.move((Gdk.Screen.width() / 2)- 250 ,0);
this.el.set_default_size( 500,200); // not sure why it grows..
@@
-126,6
+125,12
@@
public class NewBranch : Object
_this.prmodel.loadProjects(curproj == null ? "" : curproj.id);
_this.dbmodel.loadTickets(curproj == null ? "": curproj.id, tid);
_this.prmodel.loadProjects(curproj == null ? "" : curproj.id);
_this.dbmodel.loadTickets(curproj == null ? "": curproj.id, tid);
+ if (tid != "") {
+ var name = RooTicket.singleton().usernameLocal();
+ var ticket = RooTicket.singleton().getById(tid);
+ _this.name.el.set_text("wip_%s_T%s_%s".printf(name,ticket.id, ticket.summaryToBranchName()));
+ }
+
this.el.run();
}
this.el.run();
}
@@
-544,8
+549,8
@@
public class NewBranch : Object
RooTicket.singleton().loadTickets(
project_id,
RooTicket.singleton().loadTickets(
project_id,
- _this.btn_not_me.el.active ? RooTicket.
NotMe.TRUE : RooTicket.NotMe.FALS
E,
- _this.btn_closed.el.active ? RooTicket.
Closed.TRUE : RooTicket.Closed.FALS
E
+ _this.btn_not_me.el.active ? RooTicket.
Who.ANYBODY : RooTicket.Who.M
E,
+ _this.btn_closed.el.active ? RooTicket.
Status.ALL : RooTicket.Status.ACTIV
E
);
_this.ticketsel.loading = true;
);
_this.ticketsel.loading = true;