Edgewall Software

Ticket #547 (closed defect: duplicate)

Opened 4 years ago

Last modified 2 years ago

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

recipients.patch (1.1 kB) - added by trac@… 4 years ago.
Fix get_recipients to take a ticket ID

Change History

Changed 4 years ago by trac@…

Fix get_recipients to take a ticket ID

Changed 4 years ago by trac@…

  • status changed from new to closed
  • resolution set to duplicate

Oops, this is a duplicate of #544.

Add/Change #547 (get_recipients now takes a ticket ID, not a ticket)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.