diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2021-09-06 19:22:50 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2021-09-06 19:22:50 +0000 |
commit | 326a1b4dd2e0c877beb1023fa3d6d943bb0275e4 (patch) | |
tree | c22dc72bf1416bdf7ecb3fc9b4654dd530e86e5d /lib/redmine/export/pdf.rb | |
parent | fdf949a50927fc1bf5a6d0226e43aca1f73e7ee4 (diff) | |
download | redmine-326a1b4dd2e0c877beb1023fa3d6d943bb0275e4.tar.gz redmine-326a1b4dd2e0c877beb1023fa3d6d943bb0275e4.zip |
Interpret thumbnail macro in description, notes and formatted custom fields in issues list PDF export (35683).
Patch by Jens Krämer.
git-svn-id: http://svn.redmine.org/redmine/trunk@21213 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/export/pdf.rb')
-rw-r--r-- | lib/redmine/export/pdf.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/redmine/export/pdf.rb b/lib/redmine/export/pdf.rb index 7e6252b3f..cba4167b4 100644 --- a/lib/redmine/export/pdf.rb +++ b/lib/redmine/export/pdf.rb @@ -104,6 +104,10 @@ module Redmine atta = RDMPdfEncoding.attach(@attachments, attrname, "UTF-8") if atta return atta.diskfile + elsif %r{/attachments/download/(?<id>[^/]+)/} =~ attrname and + atta = @attachments.find{|a| a.id.to_s == id} and + atta.readable? and atta.visible? + return atta.diskfile elsif %r{/attachments/thumbnail/(?<id>[^/]+)/(?<size>\d+)} =~ attrname and atta = @attachments.find{|a| a.id.to_s == id} and atta.readable? and atta.visible? |