mirror of
https://github.com/docusealco/docuseal
synced 2026-11-08 07:42:32 -05:00
preserve template fields per submission
This commit is contained in:
1 parent
a92d1d82c1
commit
e1eb2da6f9
11 files changed
+78
-21
No files matched your search
@@ -1,4 +1,13 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Submissions
|
||||
module_function
|
||||
|
||||
def update_template_fields!(submission)
|
||||
submission.template_fields = submission.template.fields
|
||||
submission.template_schema = submission.template.schema
|
||||
submission.template_submitters = submission.template.submitters
|
||||
|
||||
submission.save!
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user