summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-03-14 18:20:47 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-03-14 18:20:47 +0000
commit6eaceed7b5557e12e191fe117baf4e8f81251c6a (patch)
tree9fd70a8bb5897cf24a95a50fb71aac1be4874955
parenta0db91e2ab4b6d5cbe608d54a88b529c5e92ea69 (diff)
downloadredmine-6eaceed7b5557e12e191fe117baf4e8f81251c6a.tar.gz
redmine-6eaceed7b5557e12e191fe117baf4e8f81251c6a.zip
Delete :issue_query from session instead of :query.
git-svn-id: http://svn.redmine.org/redmine/trunk@16402 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/controllers/application_controller.rb3
1 files changed, 1 insertions, 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