]> source.dussan.org Git - redmine.git/commitdiff
Delete :issue_query from session instead of :query.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 14 Mar 2017 18:20:47 +0000 (18:20 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 14 Mar 2017 18:20:47 +0000 (18:20 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@16402 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/application_controller.rb

index dcc693f5055a6bb575d9b2c9df6010dcf3dde9c1..73e332617cf1b86a0b18cad9c1573c431b9570b0 100644 (file)
@@ -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