Omit blank fields as we do for the description (#21705).

git-svn-id: http://svn.redmine.org/redmine/trunk@16257 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2017-01-25 16:06:39 +00:00
parent 0ac50cc8cc
commit 37301d75b3

View File

@ -258,11 +258,13 @@ module IssuesHelper
s = ''.html_safe
values.each_with_index do |value, i|
attr_value = show_value(value)
next if attr_value.blank?
if value.custom_field.text_formatting == 'full'
attr_value = content_tag('div', show_value(value), class: 'wiki')
else
attr_value = show_value(value)
attr_value = content_tag('div', attr_value, class: 'wiki')
end
content =
content_tag('hr') +
content_tag('p', content_tag('strong', custom_field_name_tag(value.custom_field) )) +