Correct calculation of bofreq_responsible mailtrigger.Recipient to return no addresses for documents that are not of type bofreq. Commit ready for merge. Fixes #3358.
- Legacy-Id: 19255
This commit is contained in:
parent
c01fea3920
commit
83f1b6229e
|
@ -406,8 +406,9 @@ class Recipient(models.Model):
|
|||
def gather_bofreq_responsible(self, **kwargs):
|
||||
addrs = []
|
||||
if 'doc' in kwargs:
|
||||
bofreq = kwargs['doc']
|
||||
responsible = bofreq_responsible(bofreq)
|
||||
doc = kwargs['doc']
|
||||
if doc.type_id=='bofreq':
|
||||
responsible = bofreq_responsible(doc)
|
||||
if responsible:
|
||||
addrs.extend([leader.email_address() for leader in responsible])
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue