Skip to content
Snippets Groups Projects
Commit e7fccf47 authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Allow duplicate labels in the form

parent 2f3ff288
No related branches found
No related tags found
No related merge requests found
...@@ -21,8 +21,7 @@ class AbstractStreamForm(AbstractForm): ...@@ -21,8 +21,7 @@ class AbstractStreamForm(AbstractForm):
block = struct_child.block block = struct_child.block
struct_value = struct_child.value struct_value = struct_child.value
if isinstance(block, FormFieldBlock): if isinstance(block, FormFieldBlock):
field_name = block.get_slug(struct_value) form_fields[struct_child.id] = block.get_field(struct_value)
form_fields[field_name] = block.get_field(struct_value)
else: else:
form_fields[struct_child.id] = BlockFieldWrapper(struct_child) form_fields[struct_child.id] = BlockFieldWrapper(struct_child)
return form_fields return form_fields
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment