mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 06:52:33 -05:00
add combine pdf toggle
This commit is contained in:
1 parent
66c44f8ff5
commit
b6f307690d
13 files changed
+50
-16
No files matched your search
@@ -21,6 +21,12 @@ module Submitters
|
||||
end
|
||||
|
||||
def select_attachments_for_download(submitter)
|
||||
if AccountConfig.exists?(account_id: submitter.submission.account_id,
|
||||
key: AccountConfig::COMBINE_PDF_RESULT_KEY,
|
||||
value: true) && submitter.submission.combined_document_attachment
|
||||
return [submitter.submission.combined_document_attachment]
|
||||
end
|
||||
|
||||
original_documents = submitter.submission.template.documents.preload(:blob)
|
||||
is_more_than_two_images = original_documents.count(&:image?) > 1
|
||||
|
||||
|
||||
Reference in new issue
Block a user