Project

General

Profile

Actions

Defect #32858

closed

Exporting issue as PDF fails when the issue has private journal

Added by Kouhei Sutou almost 5 years ago. Updated almost 5 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

If an issue that has one or more private journals, PDF export of the issue is failed with the following backtrace:

ActionView::Template::Error (can't modify frozen String):
    1: <%= raw issue_to_pdf(@issue, :journals => @journals) %>

lib/redmine/export/pdf/issues_pdf_helper.rb:215:in `block in issue_to_pdf'
lib/redmine/export/pdf/issues_pdf_helper.rb:212:in `each'
lib/redmine/export/pdf/issues_pdf_helper.rb:212:in `issue_to_pdf'
app/views/issues/show.pdf.erb:1:in `_app_views_issues_show_pdf_erb___2781995059460618483_69922049768460'
lib/redmine/sudo_mode.rb:65:in `sudo_mode'

I attach a patch to fix this.


Files

Actions

Also available in: Atom PDF