Defect #8633 » patch.diff
query.rb Sat Jul 23 13:23:19 2011 +0200 → query.rb Sat Jul 23 13:24:41 2011 +0200 | ||
---|---|---|
502 | 502 |
|
503 | 503 |
# Returns the issue count |
504 | 504 |
def issue_count |
505 |
Issue.count(:include => [:status, :project], :conditions => statement) |
|
505 |
Issue.visible.count(:include => [:status, :project], :conditions => statement)
|
|
506 | 506 |
rescue ::ActiveRecord::StatementInvalid => e |
507 | 507 |
raise StatementInvalid.new(e.message) |
508 | 508 |
end |