(js) Deep copy by default in Calendar.$omit

This commit is contained in:
Francis Lachapelle
2018-08-31 11:39:14 -04:00
parent 155114c8fb
commit 2d63bd0bb4
2 changed files with 2 additions and 1 deletions

1
NEWS
View File

@@ -6,6 +6,7 @@ Enhancements
Bug fixes
- [web] include mail account name in form validation (#4532)
- [web] calendar properties were not completely reset on cancel
4.0.2 (2018-08-24)
------------------

View File

@@ -619,7 +619,7 @@
angular.forEach(this, function(value, key) {
if (key != 'constructor' &&
key[0] != '$') {
calendar[key] = value;
calendar[key] = angular.copy(value);
}
});
return calendar;