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

Internal Server Error with configured as tasks #27

Closed smoebody closed 4 years ago

smoebody commented 4 years ago

Hi,

when i configure the plugin to display the tickets as tasks i get the following error while fetching the link:

Started GET "/icalendar/all_projects/assigned/open/issues.ics?key=e7355837e78d338b0f3a13ce97bb5dedec0c30b6" for 127.0.0.1 at 2020-02-18 14:18:19 +0100
Processing by ICalendarController#index as ICS
  Parameters: {"key"=>"e7355837e78d338b0f3a13ce97bb5dedec0c30b6", "assignment"=>"assigned", "status"=>"open"}
  Current user: us66zumi (id=29)
Completed 500 Internal Server Error in 558ms (ActiveRecord: 108.0ms)

NoMethodError (undefined method `percent=' for #<Icalendar::Todo:0x000000000d663e80>):

plugins/redmine_ics_export/lib/redmics/export.rb:335:in `block in apply_issue_todo_properties'
plugins/redmine_ics_export/lib/redmics/export.rb:328:in `each'
plugins/redmine_ics_export/lib/redmics/export.rb:328:in `apply_issue_todo_properties'
plugins/redmine_ics_export/lib/redmics/export.rb:179:in `block in create_issues_rederer'
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:65:in `sudo_mode'
plugins/redmine_dmsf/lib/redmine_dmsf/webdav/custom_middleware.rb:72:in `call'