detect fields autosave false

This commit is contained in:
Pete Matsyburka committed 2026-09-02 20:08:42 +03:00
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