Defect #34709

No Images in PDF export of issue list (with option show description)

Added by Gregor Hiltmann 12 months ago. Updated 25 days ago.

Status:ClosedStart date:
Priority:NormalDue 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:
  1. Create a new issue, upload an attachment - e.g. "example.png" (like in this issue)
  2. Link the attachment in the description like this:
  3. Create the issue, show the issue list
  4. Click on options, check show description and apply
  5. Now the issue list images are shown
  6. 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.

How to repair - simply do this:
  1. open the file lib/redmine/export/pdf/issues_pdf_helper.rb
  2. search for:
    pdf.RDMwriteHTMLCell(0, 5, '', '', text, [], "LRB")
    
  3. replace with:
    pdf.RDMwriteHTMLCell(0, 5, '', '', text, issue.attachments, "LRB")
    

example.png (6.43 KB) Gregor Hiltmann, 2021-02-11 19:13


Related issues

Related to Redmine - Patch #35683: PDF rendering improvements when exporting an issue or a l... Closed

History

#1 Updated by Go MAEDA 11 months ago

  • Status changed from New to Confirmed

#2 Updated by Go MAEDA 11 months ago

  • Category changed from Issues list to PDF export

#3 Updated by Go MAEDA 25 days ago

  • Related to Patch #35683: PDF rendering improvements when exporting an issue or a list of issues added

#4 Updated by Go MAEDA 25 days ago

  • Status changed from Confirmed to Closed
  • Resolution set to Fixed

Fixed by r21213. The fix is going to be delivered in the upcoming Redmine 5.0.0.

Thank you for reporting the issue.

Also available in: Atom PDF