diff options
author | Robert Speicher <rspeicher@gmail.com> | 2017-09-02 00:06:59 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2017-09-02 00:06:59 +0300 |
commit | f0777fbb28a36b45035c235bf5a4c6c30f4c5db5 (patch) | |
tree | 93a1dfb12ee7edea9269597693fed246858d475f /app/helpers/issuables_helper.rb | |
parent | 223849fa173b7059e717ba4f9c02075a452cbd49 (diff) |
Ensure `issuables_count_for_state` returns the requested state count
Diffstat (limited to 'app/helpers/issuables_helper.rb')
-rw-r--r-- | app/helpers/issuables_helper.rb | 2 |
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) |