Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/projects/open_issues_count_service.rb')
-rw-r--r--app/services/projects/open_issues_count_service.rb6
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