Ticket #547: recipients.patch
| File recipients.patch, 1.1 KB (added by trac@…, 8 years ago) |
|---|
-
trac/Notify.py
264 264 return '[%s] #%s: %s' % (projname, self.ticket['id'], 265 265 self.ticket['summary']) 266 266 267 def get_recipients(self, ticket):267 def get_recipients(self, resid): 268 268 emails = [] 269 269 cursor = self.db.cursor() 270 cursor.execute('SELECT reporter,cc FROM ticket WHERE id=%s', ticket['id'])270 cursor.execute('SELECT reporter,cc FROM ticket WHERE id=%s', resid) 271 271 row = cursor.fetchone() 272 272 if row: 273 273 emails += row[0] and self.get_email_addresses(row[0]) or [] 274 274 emails += row[1] and self.get_email_addresses(row[1]) or [] 275 275 cursor.execute('SELECT DISTINCT author,ticket FROM ticket_change ' 276 ' WHERE ticket=%s', ticket['id'])276 ' WHERE ticket=%s', resid) 277 277 rows = cursor.fetchall() 278 278 for row in rows: 279 279 emails += row[0] and self.get_email_addresses(row[0]) or []
