From 6eaceed7b5557e12e191fe117baf4e8f81251c6a Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Tue, 14 Mar 2017 18:20:47 +0000 Subject: Delete :issue_query from session instead of :query. git-svn-id: http://svn.redmine.org/redmine/trunk@16402 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/application_controller.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index dcc693f50..73e332617 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -642,8 +642,7 @@ class ApplicationController < ActionController::Base # Rescues an invalid query statement. Just in case... def query_statement_invalid(exception) logger.error "Query::StatementInvalid: #{exception.message}" if logger - session.delete(:query) - sort_clear if respond_to?(:sort_clear) + session.delete(:issue_query) render_error "An error occurred while executing the query and has been logged. Please report this error to your Redmine administrator." end -- cgit v1.2.3