diff --git a/CHANGELOG.md b/CHANGELOG.md index 298edb882..869157dd2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - Upgraded ElasticSearch from 1.7 to 5.6 - Updated OmniAuth to fix Hashie warnings [omniauth#872](https://github.com/omniauth/omniauth/issues/872) +- Fix a bug: unable to filter statistics from age 0 - Fix a security issue: dependency loofah has a vulnerability as described in [CVE-2018-8048](https://github.com/flavorjones/loofah/issues/144) - Fix a security issue: rails-html-sanitizer < 1.0.3 has a security vulnerability described in [CVE-2018-3741](https://nvd.nist.gov/vuln/detail/CVE-2018-3741) - Ensure elasticSearch indices are started with green status on new installations diff --git a/app/assets/javascripts/controllers/admin/statistics.coffee.erb b/app/assets/javascripts/controllers/admin/statistics.coffee.erb index 834cae4db..cf7eca994 100644 --- a/app/assets/javascripts/controllers/admin/statistics.coffee.erb +++ b/app/assets/javascripts/controllers/admin/statistics.coffee.erb @@ -437,7 +437,7 @@ Application.Controllers.controller "StatisticsController", ["$scope", "$state", } ] # optional date range - if ageMin && ageMax + if typeof ageMin == 'number' && typeof ageMax == 'number' q.query.bool.must.push "range": "age":