|
|
|
@ -24,8 +24,8 @@ module Submitters
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def build_values_array(submitter)
|
|
|
|
def build_values_array(submitter)
|
|
|
|
fields_index = (submitter.submission.template_fields ||
|
|
|
|
fields_index = (submitter.submission.template.fields +
|
|
|
|
submitter.submission.template.fields).index_by { |e| e['uuid'] }
|
|
|
|
submitter.submission.template_fields.to_a).index_by { |e| e['uuid'] }
|
|
|
|
attachments_index = submitter.attachments.index_by(&:uuid)
|
|
|
|
attachments_index = submitter.attachments.index_by(&:uuid)
|
|
|
|
submitter_field_counters = Hash.new { 0 }
|
|
|
|
submitter_field_counters = Hash.new { 0 }
|
|
|
|
|
|
|
|
|
|
|
|
|