on the project overview, the spent time shows total spent time for all projects, but not on each project.
So i change the code like:
def project_overview_spent_time(project)
TimeEntry.visible.sum(:hours, :include => project, :conditions => project.project_condition(true))
end
Now it's working. Pls help to correct me if there is any better solution!
on the project overview, the spent time shows total spent time for all projects, but not on each project.
So i change the code like: def project_overview_spent_time(project) TimeEntry.visible.sum(:hours, :include => project, :conditions => project.project_condition(true)) end
Now it's working. Pls help to correct me if there is any better solution!
Thank you!