From da0d41ae2800c6197e24398d9cec2a3531569991 Mon Sep 17 00:00:00 2001 From: Konstantin Haase Date: Mon, 20 Dec 2010 14:30:01 +0100 Subject: [PATCH] Make sure No Filter has a table_name Conforms with recent engine changes by Tim. Signed-off-by: Konstantin Haase --- app/controllers/cost_reports_controller.rb | 1 - app/models/cost_query/filter/no_filter.rb | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/cost_reports_controller.rb b/app/controllers/cost_reports_controller.rb index 9210ed149f..589a498676 100644 --- a/app/controllers/cost_reports_controller.rb +++ b/app/controllers/cost_reports_controller.rb @@ -147,7 +147,6 @@ class CostReportsController < ApplicationController filters = force_default? ? default_filter_parameters : filter_params groups = force_default? ? default_group_parameters : group_params ensure_project_scope! filters - session[:report] = {:filters => filters, :groups => groups} @query = CostQuery.new @query.tap do |q| diff --git a/app/models/cost_query/filter/no_filter.rb b/app/models/cost_query/filter/no_filter.rb index 82e4a781ad..c4ee16d6c0 100644 --- a/app/models/cost_query/filter/no_filter.rb +++ b/app/models/cost_query/filter/no_filter.rb @@ -1,4 +1,5 @@ class CostQuery::Filter::NoFilter < Report::Filter::NoFilter + table_name "entries" dont_display! singleton