Fixed: Copy and paste error

git-svn-id: https://dev.finn.de/svn/cockpit/trunk@543 7926756e-e54e-46e6-9721-ed318f58905e
pull/6827/head
hjust 15 years ago
parent ac35305ec2
commit d75715b650
  1. 4
      app/controllers/cost_reports_controller.rb

@ -256,7 +256,7 @@ private
@entry_sum, @entry_count = [time_entry_sum, time_entry_count]
@entry_pages = Paginator.new self, @entry_count, limit, params['page']
@entries = TimeEntry.all({ :select => costs_where[TimeEntry.table_name],
@entries = TimeEntry.all({ :select => display_costs[TimeEntry.table_name],
:order => (sort_clause if time_sort_column),
:joins => [:issue, :activity, :user, :project],
:conditions => time_where,
@ -268,7 +268,7 @@ private
@entry_sum, @entry_count = [cost_entry_sum, cost_entry_count]
@entry_pages = Paginator.new self, @entry_count, limit, params['page']
@entries = CostEntry.all ({ :select => costs_where[CostEntry.table_name],
@entries = CostEntry.all ({ :select => display_costs[CostEntry.table_name],
:order => (sort_clause if cost_sort_column),
:joins => [:issue, :cost_type, :user, :project],
:conditions => cost_where,

Loading…
Cancel
Save