Skip to content

Commit 001ecb4

Browse files
committed
Merged in [8949] from rjsparks@nostrum.com:
Improvements to the fix to ietf-tools#1592. - Legacy-Id: 8982 Note: SVN reference [8949] has been migrated to Git commit 3de9922
2 parents a3a6667 + 3de9922 commit 001ecb4

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

ietf/group/utils.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,18 @@ def get_group_ads_emails(wg):
5656
if wg.acronym == 'none':
5757
return []
5858

59-
# Make sure the assigned AD is included (in case that is not one of the area ADs
60-
ad_emails = set([wg.ad_role() and wg.ad_role().email.address])
59+
ad_emails = set()
60+
6161
if wg.parent and wg.parent.acronym != 'none':
6262
# Include the _current_ list of ads for the area!
6363
ad_emails.update(get_area_ads_emails(wg.parent))
6464

65+
# Make sure the assigned AD is included (in case that is not one of the area ADs)
66+
if wg.state.slug=='active':
67+
wg_ad_email = wg.ad_role() and wg.ad_role().email.address
68+
if wg_ad_email:
69+
ad_emails.add(wg_ad_email)
70+
6571
return list(ad_emails)
6672

6773
def get_group_chairs_emails(wg):

0 commit comments

Comments
 (0)