Ticket #547 (closed defect: duplicate)
get_recipients now takes a ticket ID, not a ticket
| Reported by: | trac@… | Owned by: | jonas |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | ticket system | Version: | devel |
| Severity: | major | Keywords: | |
| Cc: |
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
Change History
Note: See
TracTickets for help on using
tickets.


