diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-01-25 16:08:26 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-01-25 16:08:26 +0000 |
commit | a869504a44d49cc444c11e64932c12761726fe14 (patch) | |
tree | 5762c7a1dda95d378c08a24b04d2fa327e3af50b /lib/redmine/export | |
parent | 37301d75b3feb8604345a5d0492055f6daa119da (diff) | |
download | redmine-a869504a44d49cc444c11e64932c12761726fe14.tar.gz redmine-a869504a44d49cc444c11e64932c12761726fe14.zip |
Omit blank fields in PDF too (#21705).
git-svn-id: http://svn.redmine.org/redmine/trunk@16258 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/export')
-rw-r--r-- | lib/redmine/export/pdf/issues_pdf_helper.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/redmine/export/pdf/issues_pdf_helper.rb b/lib/redmine/export/pdf/issues_pdf_helper.rb index 45434c345..eba06425f 100644 --- a/lib/redmine/export/pdf/issues_pdf_helper.rb +++ b/lib/redmine/export/pdf/issues_pdf_helper.rb @@ -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 |