Skip to content

Commit

Permalink
fix submission schema
Browse files Browse the repository at this point in the history
  • Loading branch information
omohokcoj committed Dec 18, 2024
1 parent 2e58b2e commit 2fb5de4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/submissions/create_from_submitters.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def maybe_set_template_fields(submission, submitters_attrs, default_submitter_uu
if template_fields != (submission.template_fields || submission.template.fields) ||
submitters_attrs.any? { |e| e[:completed].present? }
submission.template_fields = template_fields
submission.template_schema = submission.template.schema
submission.template_schema = submission.template.schema if submission.template_schema.blank?
end

submission
Expand Down

0 comments on commit 2fb5de4

Please sign in to comment.