1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-26 10:21:14 +00:00

Omit blank fields in PDF too (#21705).

git-svn-id: http://svn.redmine.org/redmine/trunk@16258 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2017-01-25 16:08:26 +00:00
parent 37301d75b3
commit a869504a44

View File

@ -132,11 +132,12 @@ module Redmine
custom_field_values = issue.visible_custom_field_values.select {|value| value.custom_field.full_width_layout?}
custom_field_values.each do |value|
text = show_value(value, false)
next if text.blank?
pdf.SetFontStyle('B',9)
pdf.RDMCell(35+155, 5, value.custom_field.name, "LRT", 1)
pdf.SetFontStyle('',9)
text = show_value(value, false)
pdf.RDMwriteFormattedCell(35+155, 5, '', '', text, issue.attachments, "LRB")
end