#899: hot fix
This commit is contained in:
parent
69d384412e
commit
befbf7e85a
|
@ -10,7 +10,9 @@ class Projects::BaseController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def init_statistics
|
def init_statistics
|
||||||
|
if @project
|
||||||
@opened_issues_count = @project.issues.without_pull_requests.not_closed_or_merged.count
|
@opened_issues_count = @project.issues.without_pull_requests.not_closed_or_merged.count
|
||||||
@opened_pull_requests_count = @project.issues.joins(:pull_request).not_closed_or_merged.count
|
@opened_pull_requests_count = @project.issues.joins(:pull_request).not_closed_or_merged.count
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue