summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-12-09 21:13:26 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-12-09 21:13:26 +0000
commitaba07a860f9583c6ee17e83f54b4002ceec50122 (patch)
tree0efbb0bed8e8e5df4533eed9c3012299c9b534d1 /app
parent0ce6eb92850b550c5fd23bd87fc42ed4f29bcc0c (diff)
downloadredmine-aba07a860f9583c6ee17e83f54b4002ceec50122.tar.gz
redmine-aba07a860f9583c6ee17e83f54b4002ceec50122.zip
Rescue Query::StatementInvalid in TimelogController.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10973 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/controllers/timelog_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/timelog_controller.rb b/app/controllers/timelog_controller.rb
index ab4897d2c..61d72e3f3 100644
--- a/app/controllers/timelog_controller.rb
+++ b/app/controllers/timelog_controller.rb
@@ -30,6 +30,8 @@ class TimelogController < ApplicationController
accept_rss_auth :index
accept_api_auth :index, :show, :create, :update, :destroy
+ rescue_from Query::StatementInvalid, :with => :query_statement_invalid
+
helper :sort
include SortHelper
helper :issues