diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-03 09:10:04 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-03 09:10:04 +0300 |
commit | b646822e5253cfa239728ed0d8b96cb584fc96c1 (patch) | |
tree | b5b2731e6beacf5323ce6fc9cb0eb922af947825 /app/services/projects/open_issues_count_service.rb | |
parent | 531a68a424fddcc936ba6271fbb10a5aa1da75a7 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services/projects/open_issues_count_service.rb')
-rw-r--r-- | app/services/projects/open_issues_count_service.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/services/projects/open_issues_count_service.rb b/app/services/projects/open_issues_count_service.rb index ee4d559e612..925512f31d7 100644 --- a/app/services/projects/open_issues_count_service.rb +++ b/app/services/projects/open_issues_count_service.rb @@ -63,12 +63,12 @@ module Projects # rubocop: disable CodeReuse/ActiveRecord def self.query(projects, public_only: true) - issues_filtered_by_type = Issue.opened.with_issue_type(Issue::TYPES_FOR_LIST) + open_issues = Issue.opened if public_only - issues_filtered_by_type.public_only.where(project: projects) + open_issues.public_only.where(project: projects) else - issues_filtered_by_type.where(project: projects) + open_issues.where(project: projects) end end # rubocop: enable CodeReuse/ActiveRecord |