handle nil more careful when deleting session data

pull/6827/head
Philipp Tessenow 14 years ago
parent 448d55a1fe
commit 80e30fe1e3
  1. 2
      lib/report/controller.rb

@ -255,7 +255,7 @@ module Report::Controller
if force_default?
filters = default_filter_parameters
groups = default_group_parameters
session[report_engine.name.underscore.to_sym].delete(:name)
session[report_engine.name.underscore.to_sym].try :delete, :name
else
filters = filter_params
groups = group_params

Loading…
Cancel
Save