mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 22:52:32 -05:00
detect fields autosave false
This commit is contained in:
1 parent
033ce3a169
commit
436d947f6a
2 files changed
+16
-7
No files matched your search
@@ -10,8 +10,14 @@ class TemplatesDetectFieldsController < ApplicationController
|
||||
|
||||
sse = SSE.new(response.stream)
|
||||
|
||||
documents = @template.schema_documents.preload(:blob)
|
||||
documents = documents.where(uuid: params[:attachment_uuid]) if params[:attachment_uuid].present?
|
||||
documents =
|
||||
if params[:attachment_uuid].present?
|
||||
@template.documents.where(uuid: params[:attachment_uuid])
|
||||
else
|
||||
@template.schema_documents
|
||||
end
|
||||
|
||||
documents = documents.preload(:blob)
|
||||
|
||||
page_number = params[:page].presence&.to_i
|
||||
|
||||
|
||||
Reference in new issue
Block a user