Browse Source

feat: update filters_count

pull/1775/head
natdeanlewissoftwire 3 years ago
parent
commit
63a5e7437c
  1. 2
      app/helpers/filters_helper.rb

2
app/helpers/filters_helper.rb

@ -80,7 +80,7 @@ private
filters.each.sum do |category, category_filters| filters.each.sum do |category, category_filters|
if %w[status years bulk_upload_id].include?(category) if %w[status years bulk_upload_id].include?(category)
category_filters.count(&:present?) category_filters.count(&:present?)
elsif %w[user organisation].include?(category) elsif %w[assigned_to organisation].include?(category)
category_filters != "all" ? 1 : 0 category_filters != "all" ? 1 : 0
else else
0 0

Loading…
Cancel
Save