Show estimated time on the overview page as well as spent time (#30464).

Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17838 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2019-01-22 23:34:57 +00:00
parent eda4b6514b
commit bb17ee5295
3 changed files with 22 additions and 4 deletions

View File

@@ -158,6 +158,7 @@ class ProjectsController < ApplicationController
if User.current.allowed_to_view_all_time_entries?(@project)
@total_hours = TimeEntry.visible.where(cond).sum(:hours).to_f
@total_estimated_hours = Issue.visible.where(cond).sum(:estimated_hours).to_f
end
@key = User.current.rss_key