From 93086d20a72a7fd27a854c7c36fa821391a1634e Mon Sep 17 00:00:00 2001 From: hjust Date: Fri, 30 Oct 2009 17:44:04 +0000 Subject: [PATCH] fixed a typo which prevented time entries from correctly updating its costs on first try git-svn-id: https://dev.finn.de/svn/cockpit/trunk@262 7926756e-e54e-46e6-9721-ed318f58905e --- lib/time_entry_patch.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/time_entry_patch.rb b/lib/time_entry_patch.rb index 1ee49ff540..7badccebcc 100644 --- a/lib/time_entry_patch.rb +++ b/lib/time_entry_patch.rb @@ -8,7 +8,7 @@ module TimeEntryPatch base.send(:include, InstanceMethods) - # Same as typing in the class + # Same as typing in the class t.update_costs base.class_eval do unloadable @@ -35,7 +35,7 @@ module TimeEntryPatch def calculated_costs(rate_attr = nil) rate_attr ||= current_rate - hours * rate.rate + hours * rate_attr.rate rescue 0.0 end