From ac7a7430e8c4164dd5081fa828b8a455e17d07c3 Mon Sep 17 00:00:00 2001 From: hjust Date: Tue, 8 Dec 2009 16:40:11 +0000 Subject: [PATCH] Fixed a typo causing a 500 if issues had booked time entries. git-svn-id: https://dev.finn.de/svn/cockpit/trunk@398 7926756e-e54e-46e6-9721-ed318f58905e --- lib/issues_controller_patch.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/issues_controller_patch.rb b/lib/issues_controller_patch.rb index f8bb1fbc29..ab9202bb41 100644 --- a/lib/issues_controller_patch.rb +++ b/lib/issues_controller_patch.rb @@ -20,7 +20,7 @@ module IssuesControllerPatch cost_entries_with_rate = @cost_entries.select{|c| c.costs_visible_by?(User.current)} @material_costs = cost_entries_with_rate.blank? ? nil : cost_entries_with_rate.collect(&:real_costs).sum - @cost_entries = @issue.time_entries.visible(User.current, @issue.project) + @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