Defect #34709
No Images in PDF export of issue list (with option show description)
Status: | Closed | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 0% | |
Category: | PDF export | |||
Target version: | - | |||
Resolution: | Fixed | Affected version: | 4.1.1 |
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")
Related issues
History
#1
Updated by Go MAEDA over 1 year ago
- Status changed from New to Confirmed
#2
Updated by Go MAEDA over 1 year ago
- Category changed from Issues list to PDF export
#3
Updated by Go MAEDA 7 months ago
- Related to Feature #35683: PDF rendering improvements when exporting an issue or a list of issues added