From d246eadb32193d85c02a832a7035867a63c45140 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ce=C4=BEuch?= Date: Mon, 5 Aug 2024 16:16:07 +0200 Subject: [PATCH] Autoload unless xsd and xslt (#20) * default to autoload unless xlst and xsd specified * minor cleanup --- app/controllers/api/v1/documents_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/v1/documents_controller.rb b/app/controllers/api/v1/documents_controller.rb index 821c02b..91de964 100644 --- a/app/controllers/api/v1/documents_controller.rb +++ b/app/controllers/api/v1/documents_controller.rb @@ -105,7 +105,7 @@ def document_params params.require(:document).require(:content) params[:parameters] = {} unless params[:parameters] - params[:parameters][:autoLoadEform] = true unless params[:parameters][:containerXmlns] + params[:parameters][:autoLoadEform] = true unless params[:schema] && params[:transformation] params.permit( :encryption_key,