summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2017-09-01 17:06:59 -0400
committerRobert Speicher <rspeicher@gmail.com>2017-09-01 17:06:59 -0400
commitf0777fbb28a36b45035c235bf5a4c6c30f4c5db5 (patch)
tree93a1dfb12ee7edea9269597693fed246858d475f
parent223849fa173b7059e717ba4f9c02075a452cbd49 (diff)
downloadgitlab-ce-f0777fbb28a36b45035c235bf5a4c6c30f4c5db5.tar.gz
Ensure `issuables_count_for_state` returns the requested state count
-rw-r--r--app/helpers/issuables_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/issuables_helper.rb b/app/helpers/issuables_helper.rb
index 5d7d33da30a..f4d452b3c9b 100644
--- a/app/helpers/issuables_helper.rb
+++ b/app/helpers/issuables_helper.rb
@@ -242,7 +242,7 @@ module IssuablesHelper
def issuables_count_for_state(issuable_type, state)
finder = public_send("#{issuable_type}_finder") # rubocop:disable GitlabSecurity/PublicSend
- finder.count_by_state
+ finder.count_by_state[state]
end
def close_issuable_url(issuable)