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