buschmais / redmics

Plug-in for Redmine (http://www.redmine.org/) to export project issues and versions as ICalendar (ICS) files
41 stars 18 forks source link

NoMethodError in export.rb 450 with Redmine 4.2.5 #34

Closed lopezio closed 3 years ago

lopezio commented 3 years ago

Hi All,

I just installed the plugin on an upgraded redmine 4.2.5 and got the following when fetching the url:

Processing by ICalendarController#index as ICS
  Parameters: {"key"=>"REDACTED", "assignment"=>"assigned", "status"=>"open"}
  Current user: REDACTED (id=4)
Completed 500 Internal Server Error in 287ms (ActiveRecord: 13.7ms)

NoMethodError (undefined method `[]' for nil:NilClass):

plugins/redmine_ics_export/lib/redmics/export.rb:450:in `block in enhance_issue_summary'
plugins/redmine_ics_export/lib/redmics/export.rb:440:in `each'
plugins/redmine_ics_export/lib/redmics/export.rb:440:in `enhance_issue_summary'
plugins/redmine_ics_export/lib/redmics/export.rb:171:in `block in create_issues_renderer'
plugins/redmine_ics_export/lib/redmics/export.rb:52:in `collect'
plugins/redmine_ics_export/lib/redmics/export.rb:52:in `icalendar'
plugins/redmine_ics_export/app/controllers/i_calendar_controller.rb:48:in `index'
lib/redmine/sudo_mode.rb:61:in `sudo_mode'

Any ideas..? Unfortunatley, I'm not a ruby expert..