fix schema documents

This commit is contained in:
Pete Matsyburka
2026-03-15 15:02:46 +02:00
parent db5dbd6ac2
commit 4cfee2fe45
+1 -1
View File
@@ -125,7 +125,7 @@ class Submission < ApplicationRecord
dynamic_count = template_schema&.count { |e| e['dynamic'] }.to_i
if template.variables_schema.blank?
if variables_schema.blank?
if dynamic_count > 0
if dynamic_count == template_schema.size
template_schema_dynamic_document_attachments