diff options
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? |