mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-12 07:17:12 +00:00
fix(mail(js)): allow to add any event invitation
This commit is contained in:
1 parent
9e364c647f
commit
56f9e3e398
3 files changed
+30
-8
No files matched your search
@@ -599,9 +599,9 @@
|
||||
this.repeat.end = 'never';
|
||||
this.$hasCustomRepeat = this.hasCustomRepeat();
|
||||
|
||||
var type = (this.type == 'appointment')? 'Events' : 'Tasks';
|
||||
if (this.isNew) {
|
||||
// Set default values
|
||||
var type = (this.type == 'appointment')? 'Events' : 'Tasks';
|
||||
|
||||
// Set default classification
|
||||
this.classification = Component.$Preferences.defaults['SOGoCalendar' + type + 'DefaultClassification'].toLowerCase();
|
||||
@@ -618,8 +618,13 @@
|
||||
// Set notitifications
|
||||
this.sendAppointmentNotifications = Component.$Preferences.defaults.SOGoAppointmentSendEMailNotifications;
|
||||
}
|
||||
else if (angular.isUndefined(data.$hasAlarm)) {
|
||||
this.$hasAlarm = angular.isDefined(data.alarm);
|
||||
else {
|
||||
if (angular.isUndefined(data.$hasAlarm)) {
|
||||
this.$hasAlarm = angular.isDefined(data.alarm);
|
||||
}
|
||||
if (angular.isUndefined(data.classification)) {
|
||||
this.classification = Component.$Preferences.defaults['SOGoCalendar' + type + 'DefaultClassification'].toLowerCase();
|
||||
}
|
||||
}
|
||||
|
||||
// Allow the component to be moved to a different calendar
|
||||
|
||||
Reference in new issue
Block a user