Defect #34709

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

Added by Gregor Hiltmann 8 months ago. Updated 8 months ago.

Status:ConfirmedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:PDF export
Target version:-
Resolution: 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

History

#1 Updated by Go MAEDA 8 months ago

  • Status changed from New to Confirmed

#2 Updated by Go MAEDA 8 months ago

  • Category changed from Issues list to PDF export

Also available in: Atom PDF