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 #1

Updated by Go MAEDA almost 4 years ago

  • Status changed from New to Confirmed
Actions #2

Updated by Go MAEDA almost 4 years ago

  • Category changed from Issues list to PDF export
Actions #3

Updated by Go MAEDA almost 3 years ago

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

Updated by Go MAEDA almost 3 years 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.

Actions

Also available in: Atom PDF