Modify ↓
#547 closed defect (duplicate)
get_recipients now takes a ticket ID, not a ticket
| Reported by: | Owned by: | Jonas Borgström | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | ticket system | Version: | devel |
| Severity: | major | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
Email notification is broken without this patch.
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/trac/ModPythonHandler.py", line 172, in handler
core.dispatch_request(mpr.path_info, args, mpr, env)
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/trac/core.py", line 403, in dispatch_request
module.run()
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/trac/Module.py", line 45, in run
self.render()
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/trac/Ticket.py", line 387, in render
self.save_changes (id)
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/trac/Ticket.py", line 322, in save_changes
tn.notify(ticket, newticket=0, modtime=time.time())
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/trac/Notify.py", line 223, in notify
NotifyEmail.notify(self, ticket['id'], subject)
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/trac/Notify.py", line 127, in notify
Notify.notify(self, resid)
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/trac/Notify.py", line 74, in notify
rcpts = self.get_recipients(resid)
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/trac/Notify.py", line 270, in get_recipients
cursor.execute('SELECT reporter,cc FROM ticket WHERE id=%s', ticket['id'])
TypeError: string indices must be integers
Attachments (1)
Change History (2)
by , 21 years ago
| Attachment: | recipients.patch added |
|---|
comment:1 by , 21 years ago
| Resolution: | → duplicate |
|---|---|
| Status: | new → closed |
Oops, this is a duplicate of #544.
Note:
See TracTickets
for help on using tickets.



Fix get_recipients to take a ticket ID