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
This commit is contained in:
Bill Fenner 2007-06-08 20:04:52 +00:00
parent 89a8834177
commit 48a4219a32

View file

@ -242,9 +242,8 @@ class ListReqWizard(wizard.Wizard):
else:
self.initial[self.main_step].update({'domain_name': form.clean_data['domain_name']})
if step == self.main_step:
approvers = mlist_approvers(form0.clean_data['mail_type'], form0.clean_data['domain_name'], form0.clean_data['group'])
main_form = self.clean_forms[self.main_step]
requestor_email = main_form.clean_data['requestor_email']
approvers = mlist_approvers(form0.clean_data['mail_type'], form.clean_data['domain_name'], form0.clean_data['group'])
requestor_email = form.clean_data['requestor_email']
requestor_person = None
for a in approvers:
if requestor_email == a.person.email()[1]: