Fix issue #135: Error when updating multiple tickets.

This commit is contained in:
Ross Poulton 2010-09-04 06:47:55 +00:00
parent 1db70b2804
commit 305bd2769a
2 changed files with 4 additions and 2 deletions

View File

@ -56,3 +56,5 @@ pagination issues. Thanks to Walter Doekes for the patches.
2010-07-16 r158 New CSRF functionality for Django 1.1+. Thanks to
'litchfield4' for the patch.
2010-09-04 r159 Error when updating multiple tickets. Issue #135.

View File

@ -391,13 +391,13 @@ def mass_update(request):
)
messages_sent_to.append(t.submitter_email)
for cc in ticket.ticketcc_set.all():
for cc in t.ticketcc_set.all():
if cc.email_address not in messages_sent_to:
send_templated_mail(
'closed_submitter',
context,
recipients=cc.email_address,
sender=ticket.queue.from_address,
sender=t.queue.from_address,
fail_silently=True,
)
messages_sent_to.append(cc.email_address)