From 326a1b4dd2e0c877beb1023fa3d6d943bb0275e4 Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Mon, 6 Sep 2021 19:22:50 +0000 Subject: Interpret thumbnail macro in description, notes and formatted custom fields in issues list PDF export (35683). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Patch by Jens Krämer. git-svn-id: http://svn.redmine.org/redmine/trunk@21213 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/export/pdf.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/redmine/export/pdf.rb') 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/(?[^/]+)/} =~ attrname and + atta = @attachments.find{|a| a.id.to_s == id} and + atta.readable? and atta.visible? + return atta.diskfile elsif %r{/attachments/thumbnail/(?[^/]+)/(?\d+)} =~ attrname and atta = @attachments.find{|a| a.id.to_s == id} and atta.readable? and atta.visible? -- cgit v1.2.3