From 37baedf7df524bd9651cda786752b3a213e609e3 Mon Sep 17 00:00:00 2001 From: hjust Date: Tue, 8 Dec 2009 16:42:40 +0000 Subject: [PATCH] Forget to comment an old bit of code. git-svn-id: https://dev.finn.de/svn/cockpit/trunk@399 7926756e-e54e-46e6-9721-ed318f58905e --- lib/issues_controller_patch.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/issues_controller_patch.rb b/lib/issues_controller_patch.rb index ab9202bb41..b2e1f9f9fe 100644 --- a/lib/issues_controller_patch.rb +++ b/lib/issues_controller_patch.rb @@ -21,9 +21,9 @@ module IssuesControllerPatch @material_costs = cost_entries_with_rate.blank? ? nil : cost_entries_with_rate.collect(&:real_costs).sum @time_entries = @issue.time_entries.visible(User.current, @issue.project) - TimeEntry.visible_by(User.current) do - @time_entries += TimeEntry.all(:include => [:user, :project], :conditions => {:issue_id => @issue.id}) - end + # TimeEntry.visible_by(User.current) do + # @time_entries += TimeEntry.all(:include => [:user, :project], :conditions => {:issue_id => @issue.id}) + # end time_entries_with_rate = @time_entries.select{|c| c.costs_visible_by?(User.current)} @labor_costs = time_entries_with_rate.blank? ? nil : time_entries_with_rate.collect(&:real_costs).sum