Actions
Defect #34709
closedNo Images in PDF export of issue list (with option show description)
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
PDF export
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Affected version:
Description
This error is shown in current release 4.1.1 and the version used by redmine.org.
Steps to reproduce:- Create a new issue, upload an attachment - e.g. "example.png" (like in this issue)
- Link the attachment in the description like this:
- Create the issue, show the issue list
- Click on options, check show description and apply
- Now the issue list images are shown
- Click on (also available in) PDF below the list
Result:
The PDF doesn't contain the image. Instead the filename ist shown. In production log we see an error (something like filename is missing) -> filename object is NIL.
- open the file lib/redmine/export/pdf/issues_pdf_helper.rb
- search for:
pdf.RDMwriteHTMLCell(0, 5, '', '', text, [], "LRB")
- replace with:
pdf.RDMwriteHTMLCell(0, 5, '', '', text, issue.attachments, "LRB")
Files
Related issues
Actions