From 37301d75b3feb8604345a5d0492055f6daa119da Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 25 Jan 2017 16:06:39 +0000 Subject: [PATCH] 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 --- app/helpers/issues_helper.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index a9e1ab1c0..9bc3b3eaa 100644 --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -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) )) + -- 2.39.5