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
pull/6827/head
hjust 15 years ago
parent c795a970e4
commit ac7a7430e8
  1. 2
      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

Loading…
Cancel
Save