mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 06:52:33 -05:00
non prefillable types
This commit is contained in:
1 parent
2d6f4c521e
commit
5ef32bcf9e
1 file changed
+4
@@ -15,6 +15,8 @@ module Submitters
|
|||||||
TRUE_VALUES = ['1', 'true', true, 'TRUE', 'True', 'yes', 'YES', 'Yes'].freeze
|
TRUE_VALUES = ['1', 'true', true, 'TRUE', 'True', 'yes', 'YES', 'Yes'].freeze
|
||||||
FALSE_VALUES = ['0', 'false', false, 'FALSE', 'False', 'no', 'NO', 'No'].freeze
|
FALSE_VALUES = ['0', 'false', false, 'FALSE', 'False', 'no', 'NO', 'No'].freeze
|
||||||
|
|
||||||
|
NON_PREFILLABLE_FIELD_TYPES = %w[payment kba verification].freeze
|
||||||
|
|
||||||
module_function
|
module_function
|
||||||
|
|
||||||
# rubocop:disable Metrics
|
# rubocop:disable Metrics
|
||||||
@@ -66,6 +68,8 @@ module Submitters
|
|||||||
next if value_fields.blank?
|
next if value_fields.blank?
|
||||||
|
|
||||||
value_fields.each do |field|
|
value_fields.each do |field|
|
||||||
|
next if NON_PREFILLABLE_FIELD_TYPES.include?(field['type'])
|
||||||
|
|
||||||
if field['type'].in?(%w[initials signature image file stamp]) && value.present?
|
if field['type'].in?(%w[initials signature image file stamp]) && value.present?
|
||||||
new_value, new_attachments =
|
new_value, new_attachments =
|
||||||
normalize_attachment_value(value, field, template.account, attachments, for_submitter:, purpose:)
|
normalize_attachment_value(value, field, template.account, attachments, for_submitter:, purpose:)
|
||||||
|
|||||||
Reference in new issue
Block a user