Skip to content

Commit 48a4219

Browse files
committed
Use the main form's domain_name, not the initial domain_name, to
pick the approver, since the main form's version has been changed to ietf.org if appropriate. Don't try to look up the main_form -- since we're currently processing the main_form, it's just 'form'! - Legacy-Id: 271
1 parent 89a8834 commit 48a4219

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

ietf/mailinglists/views.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,8 @@ def process_step(self, request, form, step):
242242
else:
243243
self.initial[self.main_step].update({'domain_name': form.clean_data['domain_name']})
244244
if step == self.main_step:
245-
approvers = mlist_approvers(form0.clean_data['mail_type'], form0.clean_data['domain_name'], form0.clean_data['group'])
246-
main_form = self.clean_forms[self.main_step]
247-
requestor_email = main_form.clean_data['requestor_email']
245+
approvers = mlist_approvers(form0.clean_data['mail_type'], form.clean_data['domain_name'], form0.clean_data['group'])
246+
requestor_email = form.clean_data['requestor_email']
248247
requestor_person = None
249248
for a in approvers:
250249
if requestor_email == a.person.email()[1]:

0 commit comments

Comments
 (0)