leelokas / vacation_tracker

3 stars 3 forks source link

Bug when adding new user #158

Closed lucyhilltop closed 6 years ago

lucyhilltop commented 6 years ago

When creating new user and filling out the "Unused vacation days" field, the following error is logged in console and user is not created: angular.js:13920 TypeError: Cannot read property 'push' of undefined at UserManagementDialogController.save (user-management-dialog.controller.js:70) at fn (eval at compile (angular.js:14817), <anonymous>:4:254) at expensiveCheckFn (angular.js:15906) at callback (angular.js:25885) at Scope.$eval (angular.js:17682) at Scope.$apply (angular.js:17782) at HTMLFormElement.<anonymous> (angular.js:25890) at HTMLFormElement.dispatch (jquery.js:5110) at HTMLFormElement.elemData.handle (jquery.js:4918) When creating the user without filling in the "Unused vacation days" field, the user can be created without errors. Editing users later to add the unused vacation days also works fine.

leelokas commented 6 years ago

needs testing