diff --git a/app/models/report/chainable.rb b/app/models/report/chainable.rb index 80f82cbb30..3b0f469779 100644 --- a/app/models/report/chainable.rb +++ b/app/models/report/chainable.rb @@ -268,7 +268,7 @@ class Report < ActiveRecord::Base end def self.last_table - @last_table ||= 'entries' + @last_table ||= engine::Filter::NoFilter.table_name end def self.table_name(value = nil) diff --git a/app/models/report/filter/no_filter.rb b/app/models/report/filter/no_filter.rb index c92a3238c1..6ae9b40fbf 100644 --- a/app/models/report/filter/no_filter.rb +++ b/app/models/report/filter/no_filter.rb @@ -1,4 +1,5 @@ class Report::Filter::NoFilter < Report::Filter::Base + table_name "entries" dont_display! singleton