Ensure `issuables_count_for_state` returns the requested state count

This commit is contained in:
Robert Speicher 2017-09-01 17:06:59 -04:00
parent 223849fa17
commit f0777fbb28
1 changed files with 1 additions and 1 deletions

View File

@ -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)