We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ec384d commit e551c0cCopy full SHA for e551c0c
lib/redmine/export/pdf.rb
@@ -104,10 +104,12 @@ def get_image_filename(attrname)
104
atta = RDMPdfEncoding.attach(@attachments, attrname, "UTF-8")
105
if atta
106
return atta.diskfile
107
+ # rubocop:disable Lint/DuplicateBranch
108
elsif %r{/attachments/download/(?<id>[^/]+)/} =~ attrname and
109
atta = @attachments.find{|a| a.id.to_s == id} and
110
atta.readable? and atta.visible?
111
112
+ # rubocop:enable Lint/DuplicateBranch
113
elsif %r{/attachments/thumbnail/(?<id>[^/]+)/(?<size>\d+)} =~ attrname and
114
115
0 commit comments