mirror of
https://github.com/docusealco/docuseal
synced 2026-11-08 15:42:32 -05:00
preserve template fields per submission
This commit is contained in:
1 parent
a92d1d82c1
commit
e1eb2da6f9
11 files changed
+78
-21
No files matched your search
+2
-2
@@ -3,10 +3,10 @@
|
||||
module Templates
|
||||
module_function
|
||||
|
||||
def build_field_areas_index(template)
|
||||
def build_field_areas_index(fields)
|
||||
hash = {}
|
||||
|
||||
template.fields.each do |field|
|
||||
fields.each do |field|
|
||||
(field['areas'] || []).each do |area|
|
||||
hash[area['attachment_uuid']] ||= {}
|
||||
acc = (hash[area['attachment_uuid']][area['page']] ||= [])
|
||||
|
||||
Reference in new issue
Block a user