fix file link generation

pull/217/head 1.4.4
Alex Turchyn 2 years ago
parent 984df15949
commit 4eb4e8c1f8

@ -135,7 +135,7 @@ module Submissions
ActiveStorage::Blob.proxy_url(attachment.blob) if attachment ActiveStorage::Blob.proxy_url(attachment.blob) if attachment
elsif template_field_type == 'file' elsif template_field_type == 'file'
Array.wrap(submitter_value).compact_blank.filter_map do |e| Array.wrap(submitter_value).compact_blank.filter_map do |e|
attachment = attachments_index[e]&.url attachment = attachments_index[e]
ActiveStorage::Blob.proxy_url(attachment.blob) if attachment ActiveStorage::Blob.proxy_url(attachment.blob) if attachment
end end
else else

Loading…
Cancel
Save