Make DMS document available as Type of a custom field #1248

This commit is contained in:
Karel Pičman 2023-09-04 14:59:36 +02:00
parent 73193baa68
commit 17ac75f90a
2 changed files with 7 additions and 2 deletions

View File

@ -107,3 +107,8 @@ Style/FrozenStringLiteralComment:
Style/OpenStructUse: Style/OpenStructUse:
Exclude: Exclude:
- lib/dav4rack/utils.rb - lib/dav4rack/utils.rb
Style/OptionalBooleanParameter:
Exclude:
- lib/redmine_dmsf/field_formats/dmsf_file_format.rb

View File

@ -42,7 +42,7 @@ module RedmineDmsf
options options
end end
def formatted_value(view, _custom_field, value, _customized: nil, _html: false) def formatted_value(view, _custom_field, value, _customized = nil, _html = false)
return '' if value.blank? return '' if value.blank?
dmsf_file = DmsfFile.find_by(id: value) dmsf_file = DmsfFile.find_by(id: value)