diff --git a/CHANGELOG.md b/CHANGELOG.md index de7536cfe..23ab9d595 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ - Fix a bug: error handling on password recovery - Fix a bug: error handling on machine attachment upload +- Fix a bug: first day of week is ignored in statistics custom filter - Refactored frontend invoices translations ## v2.8.1 2019 January 02 diff --git a/app/assets/javascripts/controllers/admin/statistics.js.erb b/app/assets/javascripts/controllers/admin/statistics.js.erb index 61f7a436d..d72ff1fca 100644 --- a/app/assets/javascripts/controllers/admin/statistics.js.erb +++ b/app/assets/javascripts/controllers/admin/statistics.js.erb @@ -94,9 +94,9 @@ Application.Controllers.controller('StatisticsController', ['$scope', '$state', minDate: null, maxDate: moment().toDate(), options: { - startingDay: 1 + startingDay: Fablab.weekStartingDay } - } // France: the week starts on monday + } }; // available custom filters