diff options
author | Yingtong Li <runassudo@yingtongli.me> | 2020-07-18 16:58:06 +1000 |
---|---|---|
committer | Yingtong Li <runassudo@yingtongli.me> | 2020-07-18 17:02:12 +1000 |
commit | ae128d209c9e9e40aab7fb95f4e11f2ef0f917c8 (patch) | |
tree | 1c23aa10a0f2088da6c574c6ba87d58f987abe5e | |
parent | 5bf2f310d652ad85281302ea97756248c0cae059 (diff) |
Correct logic error resulting in reimbursement claim comments not being sent
-rw-r--r-- | sstreasury/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sstreasury/views.py b/sstreasury/views.py index 2c993bf..24d49a2 100644 --- a/sstreasury/views.py +++ b/sstreasury/views.py @@ -624,8 +624,8 @@ def claim_action(request, claim): for user in User.objects.filter(groups__name='Treasury'): if user != request.user: emailer.send_mail([user.email], 'New comment on reimbursement claim: {} (RE-{})'.format(claim.purpose, claim.id), 'sstreasury/email/claim_commented.md', {'claim': claim, 'comment': comment}) - if comment.author != request.user: - emailer.send_mail([comment.author], 'New comment on reimbursement claim: {} (RE-{})'.format(revision.name, claim.id), 'sstreasury/email/claim_commented.md', {'claim': claim, 'comment': comment}) + if claim.author != request.user: + emailer.send_mail([claim.author.email], 'New comment on reimbursement claim: {} (RE-{})'.format(claim.purpose, claim.id), 'sstreasury/email/claim_commented.md', {'claim': claim, 'comment': comment}) if 'Submit' in actions: if not claim.can_submit(request.user): |