Skip to content

Commit

Permalink
Front: Fix error that occurred while trying to register as a company
Browse files Browse the repository at this point in the history
  • Loading branch information
chessbr committed Apr 7, 2021
1 parent d2f2b86 commit 7f7955f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Expand Up @@ -17,7 +17,8 @@ List all changes after the last release here (newer on top). Each change on a se

### Fixed

- Core: Fix error that occurred when creating an order with a product which SKU was longer than 48 characters.
- Front: Fix error that occurred while trying to register as a company
- Core: Fix error that occurred when creating an order with a product which SKU was longer than 48 characters.
- Admin: Multiple duplicate images being saved when image is uploaded before product is saved

## [2.6.0] - 2021-03-29
Expand Down
3 changes: 2 additions & 1 deletion shuup/front/apps/registration/forms.py
Expand Up @@ -41,7 +41,8 @@ def __init__(self, *args, **kwargs):
self.fields["name"].required = True
self.fields["tax_number"].required = True
address_form = cached_load("SHUUP_ADDRESS_MODEL_FORM")()
for field in self.fields:

for field in list(self.fields):
if field not in ("name", "tax_number", "www"):
address_formfield = address_form.fields.get(field)
if address_formfield:
Expand Down

0 comments on commit 7f7955f

Please sign in to comment.