with signature id

This commit is contained in:
Pete Matsyburka committed 2025-07-17 10:54:44 +03:00
1 parent 8bf727c43c
commit ec9293bac0
10 files changed
+88 -3

No files matched your search

@@ -274,6 +274,10 @@ module Submissions
field_type = 'file' if field_type == 'image' &&
!submitter.attachments.find { |a| a.uuid == value }.image?
if field_type == 'signature' && field.dig('preferences', 'with_signature_id').in?([true, false])
with_signature_id = field['preferences']['with_signature_id']
end
case field_type
when ->(type) { type == 'signature' && (with_signature_id || field.dig('preferences', 'reason_field_uuid')) }
attachment = submitter.attachments.find { |a| a.uuid == value }