diff --git a/CHANGELOG.md b/CHANGELOG.md index 60d0aada9..623c2afce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -45,6 +45,7 @@ - Fix a bug: replaces all Time.now by DateTime.current to prevent time zones issues [Taiga#134] - Fix a bug: logs are not printed in staging environment - Fix a bug: theme colors must be selected twice before the changes became effective +- Fix a bug: datepicker does not work in profile completion screen - Fix a security issue: updated loofah to fix [CVE-2019-15587](https://github.com/advisories/GHSA-c3gv-9cxf-6f57) - Fix a security issue: updated angular to 1.7.9 to fix [CVE-2019-10768](https://github.com/advisories/GHSA-89mq-4x47-5v83) - Fix a security issue: updated puma to 3.12.2 to fix [GHSA-7xx3-m584-x994](https://github.com/advisories/GHSA-7xx3-m584-x994) diff --git a/app/assets/javascripts/controllers/profile.js.erb b/app/assets/javascripts/controllers/profile.js.erb index 7a893f7a1..0ae5e79ce 100644 --- a/app/assets/javascripts/controllers/profile.js.erb +++ b/app/assets/javascripts/controllers/profile.js.erb @@ -206,7 +206,7 @@ Application.Controllers.controller('CompleteProfileController', ['$scope', '$roo CSRF.setMetaTags(); // init the birth date to JS object - $scope.user.statistic_profile.birthday = moment($scope.user.statistic_profile.birthday).toDate(); + $scope.user.statistic_profile.birthday = $scope.user.statistic_profile.birthday ? moment($scope.user.statistic_profile.birthday).toDate() : undefined; // bind fields protection with sso fields angular.forEach(activeProviderPromise.mapping, function (map) { $scope.preventField[map] = true; });