Project

General

Profile

Actions

Defect #14627

open

undefined method `show_value' on issues list PDF export

Added by remy H over 11 years ago. Updated over 11 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
PDF export
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

Hello
I had a problem when I tried to export to PDF my issues. Here is the trace :

NoMethodError (undefined method `show_value'):
lib/redmine/export/pdf.rb:260:in `block in fetch_row_values'
lib/redmine/export/pdf.rb:257:in `collect'
lib/redmine/export/pdf.rb:257:in `fetch_row_values'
lib/redmine/export/pdf.rb:302:in `block in calc_col_width'
app/helpers/issues_helper.rb:29:in `block in issue_list'
app/helpers/issues_helper.rb:25:in `each'
app/helpers/issues_helper.rb:25:in `issue_list'
lib/redmine/export/pdf.rb:300:in `calc_col_width'
lib/redmine/export/pdf.rb:428:in `issues_to_pdf'

I found what was wrong :

"include CustomFieldsHelper" is missing in /lib/export/pdf.rb
to call "show_value" in "fetch_row_values" method.

Maybe someone should fix this.

Actions #1

Updated by remy H over 11 years ago

By the way I forgot :

Environment:
Redmine version 2.3.2.stable
Ruby version 1.9.3-p448 (2013-06-27) [i386-mingw32]
Rails version 3.2.13
Environment production
Database adapter Mysql2

Actions #2

Updated by Toshi MARUYAMA over 11 years ago

I cannot reproduce.
Issue controller includes CustomFieldsHelper.
source:tags/2.3.2/app/controllers/issues_controller.rb#L38

Actions #3

Updated by Toshi MARUYAMA over 11 years ago

Issues helper uses show_value.
source:tags/2.3.2/app/helpers/issues_helper.rb#L160
It may be better including in issues helper than lib/redmine/export/pdf.rb.

Actions #4

Updated by Toshi MARUYAMA over 11 years ago

  • Subject changed from Bug on PDF export to undefined method `show_value' on PDF export
Actions #5

Updated by Toshi MARUYAMA over 11 years ago

  • Subject changed from undefined method `show_value' on PDF export to undefined method `show_value' on issues list PDF export
Actions

Also available in: Atom PDF