@@ -151,8 +151,8 class ProjectsController < ApplicationController | |||||
151 |
|
151 | |||
152 | cond = @project.project_condition(Setting.display_subprojects_issues?) |
|
152 | cond = @project.project_condition(Setting.display_subprojects_issues?) | |
153 |
|
153 | |||
154 |
@open_issues_by_tracker = Issue.visible.open.where(cond). |
|
154 | @open_issues_by_tracker = Issue.visible.open.where(cond).group(:tracker).count | |
155 |
@total_issues_by_tracker = Issue.visible.where(cond). |
|
155 | @total_issues_by_tracker = Issue.visible.where(cond).group(:tracker).count | |
156 |
|
156 | |||
157 | if User.current.allowed_to?(:view_time_entries, @project) |
|
157 | if User.current.allowed_to?(:view_time_entries, @project) | |
158 | @total_hours = TimeEntry.visible.where(cond).sum(:hours).to_f |
|
158 | @total_hours = TimeEntry.visible.where(cond).sum(:hours).to_f |
General Comments 0
You need to be logged in to leave comments.
Login now