mirror of
https://github.com/redmine/redmine.git
synced 2024-09-13 15:45:44 +02:00
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:
parent
0ac50cc8cc
commit
37301d75b3
@ -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) )) +
|
||||
|
Loading…
Reference in New Issue
Block a user