alexmonteiro / Redmine-Monitoring-Controlling

Redmine Plugin that works with Highcharts to show tasks on project throught Charts.
Other
131 stars 79 forks source link

ActionView::TemplateError (String can't be coerced into Fixnum) on line #112 #21

Closed KammutierSpule closed 12 years ago

KammutierSpule commented 12 years ago

Processing McTimeMgmtProjectController#index (for 10.0.2.2 at 2012-05-28 16:59:55) [GET] Parameters: {"action"=>"index", "id"=>"xxxxx", "controller"=>"mc_time_mgmt_project"} Rendering template within layouts/base Rendering mc_time_mgmt_project/index

ActionView::TemplateError (String can't be coerced into Fixnum) on line #112 of vendor/plugins/redmine_monitoring_controlling/app/views/mc_time_mgmt_project/_scripts.html.erb: 109: @spentHoursByVersionEstimated = 0 110: @spentHoursByVersionSpent = 0 111: @spentHoursByVersion.each do | issue | 112: @spentHoursByVersionEstimated = @spentHoursByVersionEstimated + issue.sumestimatedhours unless issue.sumestimatedhours.nil? 113: @spentHoursByVersionSpent = @spentHoursByVersionSpent +issue.sumspenthours unless issue.sumspenthours.nil? 114: end 115: %>

vendor/plugins/redmine_monitoring_controlling/app/views/mc_time_mgmt_project/_scripts.html.erb:112:in `+'
alexmonteiro commented 12 years ago

Ow, I've got this error too and forgot to commit the fix. Its just done. Thanks for reporting.