(fix) fixed default values for many prefs

This commit is contained in:
Ludovic Marcotte authored and Francis Lachapelle committed 2015-06-12 11:45:09 -04:00
1 parent e8acb225e4
commit d581054214
9 files changed
+138 -40

No files matched your search

@@ -26,6 +26,10 @@
}));
data.SOGoMailLabelsColors = labels;
// We convert our list of autoReplyEmailAddresses into a string.
if (data.Vacation && data.Vacation.autoReplyEmailAddresses)
data.Vacation.autoReplyEmailAddresses = data.Vacation.autoReplyEmailAddresses.join(",");
angular.extend(_this.defaults, data);
});
@@ -105,6 +109,9 @@
preferences.defaults.SOGoMailLabelsColors = labels;
if (preferences.defaults.Vacation && preferences.defaults.Vacation.autoReplyEmailAddresses)
preferences.defaults.Vacation.autoReplyEmailAddresses = preferences.defaults.Vacation.autoReplyEmailAddresses.split(",");
return preferences;
};