Project

General

Profile

Actions

Defect #34709

closed

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

Added by Gregor Hiltmann almost 4 years ago. Updated almost 3 years ago.

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:
  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")
    

Files

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

Related issues

Related to Redmine - Feature #35683: PDF rendering improvements when exporting an issue or a list of issuesClosedMarius BÄ‚LTEANU

Actions
Actions

Also available in: Atom PDF