Mandatory attachment's description in Easy

This commit is contained in:
karel.picman@lbcfree.net 2020-06-08 13:05:16 +02:00
parent d0f1932303
commit 53a3aa3681

View File

@ -89,6 +89,9 @@ class DmsfUploadController < ApplicationController
@attachment.author = User.current @attachment.author = User.current
@attachment.filename = params[:filename].presence || Redmine::Utils.random_hex(16) @attachment.filename = params[:filename].presence || Redmine::Utils.random_hex(16)
@attachment.content_type = params[:content_type].presence @attachment.content_type = params[:content_type].presence
if defined?(EasyExtensions)
@attachment.skip_description_required = true
end
saved = @attachment.save saved = @attachment.save
respond_to do |format| respond_to do |format|