From a86e1b6c84efba679275b09077d244f0cebbd07f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Pi=C4=8Dman?= Date: Tue, 3 Dec 2024 12:32:43 +0100 Subject: [PATCH] Comment is not a mandatory field (REST API) --- app/controllers/dmsf_files_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/dmsf_files_controller.rb b/app/controllers/dmsf_files_controller.rb index 6651b426..e3c0a624 100644 --- a/app/controllers/dmsf_files_controller.rb +++ b/app/controllers/dmsf_files_controller.rb @@ -121,7 +121,7 @@ def create_revision revision.title = params[:dmsf_file_revision][:title].scrub.strip revision.name = params[:dmsf_file_revision][:name].scrub.strip revision.description = params[:dmsf_file_revision][:description]&.scrub&.strip - revision.comment = params[:dmsf_file_revision][:comment].scrub.strip + revision.comment = params[:dmsf_file_revision][:comment]&.scrub&.strip revision.dmsf_file = @file last_revision = @file.last_revision revision.source_revision = last_revision