]> source.dussan.org Git - redmine.git/commitdiff
Rescue Query::StatementInvalid in TimelogController.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 9 Dec 2012 21:13:26 +0000 (21:13 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 9 Dec 2012 21:13:26 +0000 (21:13 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10973 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/timelog_controller.rb

index ab4897d2c12b34c5541775eeaa7d791fdab13cd1..61d72e3f3d34f93d322ee26194646f30ac748e0f 100644 (file)
@@ -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