Actions
Defect #39534
closedError (undefined method) in issue list PDF export
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Affected version:
Description
Hi,
I got an undefined method `custom_field' for nil:NilClass
error at https://www.redmine.org/projects/redmine/repository/svn/entry/tags/5.0.6/lib/redmine/export/pdf/issues_pdf_helper.rb#L342.
The error occurs when you try to PDF export a custom field block column that is not part of the tracker of the exported ticket(s). In that case issue.visible_custom_field_values
does not contain a custom value for the column, cv
is nil
and cv.custom_field
fails.
cv = issue.visible_custom_field_values.detect do |v| v.custom_field_id == column.custom_field.id end is_html = cv.custom_field.full_text_formatting?
Best regards,
Thomas
Actions