From 305bd2769ab9d80f34360dfe0b2ad8c55ba649fd Mon Sep 17 00:00:00 2001 From: Ross Poulton Date: Sat, 4 Sep 2010 06:47:55 +0000 Subject: [PATCH] Fix issue #135: Error when updating multiple tickets. --- CHANGELOG | 2 ++ views/staff.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index c48b6e94..941da04d 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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. diff --git a/views/staff.py b/views/staff.py index 1999b561..df781470 100644 --- a/views/staff.py +++ b/views/staff.py @@ -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)