Skip to content
Snippets Groups Projects
Commit 1029f410 authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre
Browse files

Fix issues count on project view

parent f2ba4e3d
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -301,7 +301,7 @@ module ApplicationHelper
if project.nil?
nil
elsif current_controller?(:issues)
project.issues.send(entity).count
project.issues.visible_to_user(current_user).send(entity).count
elsif current_controller?(:merge_requests)
project.merge_requests.send(entity).count
end
Loading
Loading
Loading
Loading
@@ -67,7 +67,7 @@
%span
Issues
- if @project.default_issues_tracker?
%span.count.issue_counter= number_with_delimiter(@project.issues.opened.count)
%span.count.issue_counter= number_with_delimiter(@project.issues.visible_to_user(current_user).opened.count)
 
- if project_nav_tab? :merge_requests
= nav_link(controller: :merge_requests) do
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment