summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-04-28 13:00:16 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-04-28 13:00:16 +0000
commit1e3e23d756e0b365c42daa0c7d8a2a872db692e8 (patch)
treed1fa0b7d62fccc7f775f6427969a8ebbda98b950 /app
parent68d5af3dd8a6132e29e61f355481c1ceef86c412 (diff)
downloadredmine-1e3e23d756e0b365c42daa0c7d8a2a872db692e8.tar.gz
redmine-1e3e23d756e0b365c42daa0c7d8a2a872db692e8.zip
RecordNotFound exception still raised with Rails3.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9569 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/models/query.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/query.rb b/app/models/query.rb
index e2e1326e2..0640dd684 100644
--- a/app/models/query.rb
+++ b/app/models/query.rb
@@ -564,7 +564,7 @@ class Query < ActiveRecord::Base
r = nil
if grouped?
begin
- # Rails will raise an (unexpected) RecordNotFound if there's only a nil group value
+ # Rails3 will raise an (unexpected) RecordNotFound if there's only a nil group value
r = Issue.visible.count(:group => group_by_statement, :include => [:status, :project], :conditions => statement)
rescue ActiveRecord::RecordNotFound
r = {nil => issue_count}