Cleanup of finders with :conditions option.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11963 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -155,7 +155,7 @@ class ProjectsController < ApplicationController
|
||||
@total_issues_by_tracker = Issue.visible.where(cond).count(:group => :tracker)
|
||||
|
||||
if User.current.allowed_to?(:view_time_entries, @project)
|
||||
@total_hours = TimeEntry.visible.sum(:hours, :include => :project, :conditions => cond).to_f
|
||||
@total_hours = TimeEntry.visible.where(cond).sum(:hours).to_f
|
||||
end
|
||||
|
||||
@key = User.current.rss_key
|
||||
|
||||
Reference in New Issue
Block a user