mirror of
https://github.com/docusealco/docuseal
synced 2026-11-14 15:52:32 -05:00
adjust filename
This commit is contained in:
1 parent
256d14eb94
commit
1b63b16691
12 files changed
+26
-14
No files matched your search
@@ -12,7 +12,10 @@ module Templates
|
||||
documents.each_with_index do |document, index|
|
||||
replaced_document_schema = template.schema[index]
|
||||
|
||||
template.schema[index] = { attachment_uuid: document.uuid, name: document.filename.base }
|
||||
template.schema[index] = {
|
||||
attachment_uuid: document.uuid,
|
||||
name: FilenameUtils.basename(document.blob[:filename])
|
||||
}
|
||||
|
||||
if replaced_document_schema
|
||||
template.fields.each do |field|
|
||||
|
||||
Reference in new issue
Block a user