From 53a3aa3681326cbeb170684dd7ab8369fd03c89d Mon Sep 17 00:00:00 2001 From: "karel.picman@lbcfree.net" Date: Mon, 8 Jun 2020 13:05:16 +0200 Subject: [PATCH] Mandatory attachment's description in Easy --- app/controllers/dmsf_upload_controller.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/controllers/dmsf_upload_controller.rb b/app/controllers/dmsf_upload_controller.rb index 1de2d0a3..0e4e1144 100644 --- a/app/controllers/dmsf_upload_controller.rb +++ b/app/controllers/dmsf_upload_controller.rb @@ -89,6 +89,9 @@ class DmsfUploadController < ApplicationController @attachment.author = User.current @attachment.filename = params[:filename].presence || Redmine::Utils.random_hex(16) @attachment.content_type = params[:content_type].presence + if defined?(EasyExtensions) + @attachment.skip_description_required = true + end saved = @attachment.save respond_to do |format|