Verified Commit 85fbdded authored by Kaspar Vollenweider's avatar Kaspar Vollenweider 👻
Browse files

remove likeley obsolete conditional from translate_value

parent 96b0c7f2
Pipeline #22612 canceled with stage
in 21 minutes and 39 seconds
......@@ -149,11 +149,6 @@ module FilterDropdownHelper
def translate_value(filter_attribute, q_filter)
return t('all') if filter_attribute.blank?
if [Department, GroupOfferCategory].include?(filter_attribute.class) ||
filter_attribute.to_s.to_i != 0
return filter_attribute.to_s
q_filter = q_filter.is_a?(Symbol) ? q_filter.to_s : q_filter.first.to_s
if q_filter.slice! '_true'
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment