Mandatory attachment's description in Easy
This commit is contained in:
parent
d0f1932303
commit
53a3aa3681
@ -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|
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user