Defect #14627
openundefined method `show_value' on issues list PDF export
0%
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.
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
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
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.
Updated by Toshi MARUYAMA over 11 years ago
- Subject changed from Bug on PDF export to undefined method `show_value' on PDF export
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