digitalnatives / redmine_hours

Redmine plugin for editing timesheets - NOT MAINTAINED
7 stars 12 forks source link

Totals not computed #14

Open samimussbach opened 11 years ago

samimussbach commented 11 years ago

Something seems to be strange on my installation. Anyhow, for reference: I had to change hours_controller.rb line 96 to

@daily_totals[day.to_s(:param_date)] = TimeEntry.for_user(@user).spent_on(day.to_s(:param_date)).map(&:hours).inject(:+)

from spent_on(day) to spent_on(day.to_s(:param_date)), otherwise the totals were not calculated