summaryrefslogtreecommitdiffstats
path: root/lib/redmine/export/pdf/issues_pdf_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/redmine/export/pdf/issues_pdf_helper.rb')
-rw-r--r--lib/redmine/export/pdf/issues_pdf_helper.rb5
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