From 99c01fa54a6ac6529bd94645e47b3cc1b73e1ed1 Mon Sep 17 00:00:00 2001 From: Robert Sparks Date: Tue, 21 Jan 2014 20:53:07 +0000 Subject: [PATCH] Fixed a typo in code that looks for the IRTF chair email address while adding replaces relationships. Made that code slightly more robust. Fixes ticket #1253 Commit ready for merge - Legacy-Id: 7153 --- ietf/doc/views_draft.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ietf/doc/views_draft.py b/ietf/doc/views_draft.py index 058197b4b..cde92aa2c 100644 --- a/ietf/doc/views_draft.py +++ b/ietf/doc/views_draft.py @@ -293,9 +293,9 @@ def collect_email_addresses(emails, doc): if address not in emails: emails[address] = '"%s-ads"' % (doc.group.acronym) elif doc.group.type.slug == 'rg': - email = doc.group.parent.role_set.filter(name='char')[0].email - if email.address not in emails: - emails[email.address] = '"%s"' % (email.person.name) + for role in doc.group.parent.role_set.filter(name='chair'): + if role.email.address not in emails: + emails[role.email.address] = '"%s"' % (role.person.name) if doc.shepherd: address = doc.shepherd.email_address(); if address not in emails: