mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-01 03:57:15 +00:00
Expand macros in full-width custom fields when exporting issue to PDF (#35683).
Patch by Jens Krämer. git-svn-id: http://svn.redmine.org/redmine/trunk@21211 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
649d69ea26
commit
0db3e9a732
@ -134,13 +134,18 @@ 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)
|
||||
is_html = value.custom_field.full_text_formatting?
|
||||
text = show_value(value, is_html)
|
||||
next if text.blank?
|
||||
|
||||
pdf.SetFontStyle('B', 9)
|
||||
pdf.RDMCell(35+155, 5, value.custom_field.name, "LRT", 1)
|
||||
pdf.SetFontStyle('', 9)
|
||||
pdf.RDMwriteHTMLCell(35+155, 5, '', '', text, issue.attachments, "LRB")
|
||||
if is_html
|
||||
pdf.RDMwriteFormattedCell(35+155, 5, '', '', text, issue.attachments, "LRB")
|
||||
else
|
||||
pdf.RDMwriteHTMLCell(35+155, 5, '', '', text, issue.attachments, "LRB")
|
||||
end
|
||||
end
|
||||
|
||||
unless issue.leaf?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user