fix previous commit. the session might not contain a query

pull/6827/head
Tim Felgentreff 14 years ago
parent 36d22ec172
commit 8e972b5d8b
  1. 3
      lib/report/controller.rb

@ -218,7 +218,8 @@ module Report::Controller
filters = filter_params filters = filter_params
groups = group_params groups = group_params
end end
session[report_engine.name.underscore.to_sym].merge({:filters => filters, :groups => groups}) cookie = session[report_engine.name.underscore.to_sym] || {}
session[report_engine.name.underscore.to_sym] = cookie.merge({:filters => filters, :groups => groups})
end end
## ##

Loading…
Cancel
Save