From e7fccf47d1b668e7f006d6a8188d88133b9e0f46 Mon Sep 17 00:00:00 2001
From: Todd Dembrey <todd.dembrey@torchbox.com>
Date: Wed, 24 Jan 2018 10:38:07 +0000
Subject: [PATCH] Allow duplicate labels in the form

---
 opentech/apply/stream_forms/models.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/opentech/apply/stream_forms/models.py b/opentech/apply/stream_forms/models.py
index 3c34df543..239d5c00c 100644
--- a/opentech/apply/stream_forms/models.py
+++ b/opentech/apply/stream_forms/models.py
@@ -21,8 +21,7 @@ class AbstractStreamForm(AbstractForm):
             block = struct_child.block
             struct_value = struct_child.value
             if isinstance(block, FormFieldBlock):
-                field_name = block.get_slug(struct_value)
-                form_fields[field_name] = block.get_field(struct_value)
+                form_fields[struct_child.id] = block.get_field(struct_value)
             else:
                 form_fields[struct_child.id] = BlockFieldWrapper(struct_child)
         return form_fields
-- 
GitLab