Merge pull request #5595 from AugierLe42e/statistics-page-fix
Fix available services not correctly displayed
This commit is contained in:
commit
aaadf2926f
1 changed files with 2 additions and 2 deletions
|
|
@ -12,7 +12,7 @@ module StatisticsHelper
|
|||
end
|
||||
|
||||
def service_status service, available_services
|
||||
if available_services.include? service
|
||||
if available_services.include? service.to_s
|
||||
I18n.t('statistics.enabled')
|
||||
else
|
||||
I18n.t('statistics.disabled')
|
||||
|
|
@ -20,7 +20,7 @@ module StatisticsHelper
|
|||
end
|
||||
|
||||
def service_class service, available_services
|
||||
if available_services.include? service
|
||||
if available_services.include? service.to_s
|
||||
"serv-enabled"
|
||||
else
|
||||
"serv-disabled"
|
||||
|
|
|
|||
Loading…
Reference in a new issue