Skip to content

Commit

Permalink
Comment is not a mandatory field (REST API)
Browse files Browse the repository at this point in the history
  • Loading branch information
picman committed Dec 3, 2024
1 parent e9df5b6 commit a86e1b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/dmsf_files_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a86e1b6

Please sign in to comment.