summaryrefslogtreecommitdiffstats
path: root/app/models/query.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-07-24 16:48:26 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-07-24 16:48:26 +0000
commit9cebf65568f9c0867b546c213db47346a73b9d09 (patch)
treed82789cf636403e9759383958972145142ab8528 /app/models/query.rb
parent521eaa79cb56a86e83876d95fa510ca13aebfbdf (diff)
downloadredmine-9cebf65568f9c0867b546c213db47346a73b9d09.tar.gz
redmine-9cebf65568f9c0867b546c213db47346a73b9d09.zip
Fixed: pagination do not show total visible issue count (#8633).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6314 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/query.rb')
-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 28e1a6d18..ad6a65eb5 100644
--- a/app/models/query.rb
+++ b/app/models/query.rb
@@ -510,7 +510,7 @@ class Query < ActiveRecord::Base
# Returns the issue count
def issue_count
- Issue.count(:include => [:status, :project], :conditions => statement)
+ Issue.visible.count(:include => [:status, :project], :conditions => statement)
rescue ::ActiveRecord::StatementInvalid => e
raise StatementInvalid.new(e.message)
end