Add order-level telephone field to core (#1872)

Co-authored-by: Martin Gross <gross@rami.io>
This commit is contained in:
Raphael Michel
2020-12-15 09:20:44 +01:00
committed by GitHub
parent c47e41ac8a
commit 4240ad43d0
27 changed files with 507 additions and 69 deletions

View File

@@ -33,7 +33,7 @@ def extract_form_fields(soup):
continue
if field['type'] in ('checkbox', 'radio'):
if field.has_attr('checked'):
if field.has_attr('checked') and field.has_attr('name'):
data[field['name']] = field.get('value', 'on')
continue
elif field.has_attr('name'):