From ac26ea73e7bb34ac62c7e1a5665efe0d2deedf37 Mon Sep 17 00:00:00 2001 From: "t.felgentreff" Date: Tue, 7 Sep 2010 12:57:44 +0000 Subject: [PATCH] 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 --- app/controllers/cost_reports_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/cost_reports_controller.rb b/app/controllers/cost_reports_controller.rb index 0890ebd7cd..38c009a99d 100644 --- a/app/controllers/cost_reports_controller.rb +++ b/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"