only use the simple-grouping table if really there is only one grouping

git-svn-id: https://dev.finn.de/svn/cockpit/branches/reporting_merge@1667 7926756e-e54e-46e6-9721-ed318f58905e
pull/6827/head
t.felgentreff 14 years ago
parent 254a1aeff7
commit ac26ea73e7
  1. 2
      app/controllers/cost_reports_controller.rb

@ -9,7 +9,7 @@ class CostReportsController < ApplicationController
set_cost_type
if @query.group_bys.empty?
@table_partial = "cost_entry_table"
elsif @query.depth_of(:column) == 0 or @query.depth_of(:row) == 0
elsif @query.depth_of(:column) + @query.depth_of(:row) == 1
@table_partial = "simple_cost_report_table"
else
@table_partial = "cost_report_table"

Loading…
Cancel
Save