メモ
--- mastertickets/model.py.orig 2009-01-15 22:50:59.000000000 +0900
+++ mastertickets/model.py 2009-06-11 00:28:12.000000000 +0900
@@ -70,7 +70,10 @@
if comment:
cursor.execute('INSERT INTO ticket_change (ticket, time, author, field, oldvalue, newvalue) VALUES (%s, %s, %s, %s, %s, %s)',
- (n, when_ts, author, 'comment', '', '(In #%s) %s'%(self.tkt.id, comment)))
+ (n, when_ts, author, 'comment', '', '(In #%s %s)[[BR]]%s'%(self.tkt.id, self.tkt['summary'], comment)))
+ else:
+ cursor.execute('INSERT INTO ticket_change (ticket, time, author, field, oldvalue, newvalue) VALUES (%s, %s, %s, %s, %s, %s)',
+ (n, when_ts, author, 'comment', '', 'by #%s %s'%(self.tkt.id, self.tkt['summary'])))

コメントする