(js) Fix saving the preferences with Mail disabled
parent
ac127a375f
commit
88bc1294cd
3
NEWS
3
NEWS
|
@ -4,6 +4,9 @@
|
||||||
Enhancements
|
Enhancements
|
||||||
- [web] added Hebrew (he) translation - thanks to Raz Aidlitz
|
- [web] added Hebrew (he) translation - thanks to Raz Aidlitz
|
||||||
|
|
||||||
|
Bug fixes
|
||||||
|
- [web] saving the preferences was not possible when Mail module is disabled
|
||||||
|
|
||||||
3.2.6a (2017-01-26)
|
3.2.6a (2017-01-26)
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
|
|
|
@ -45,17 +45,19 @@
|
||||||
vm.validateVacationEndDate = validateVacationEndDate;
|
vm.validateVacationEndDate = validateVacationEndDate;
|
||||||
|
|
||||||
|
|
||||||
// Fetch a flatten version of the mailboxes list of the main account (0)
|
if (sgSettings.activeUser('path').mail) {
|
||||||
// This list will be forwarded to the Sieve filter controller
|
// Fetch a flatten version of the mailboxes list of the main account (0)
|
||||||
account = new Account({ id: 0 });
|
// This list will be forwarded to the Sieve filter controller
|
||||||
account.$getMailboxes().then(function() {
|
account = new Account({ id: 0 });
|
||||||
var allMailboxes = account.$flattenMailboxes({all: true}),
|
account.$getMailboxes().then(function() {
|
||||||
index = -1,
|
var allMailboxes = account.$flattenMailboxes({all: true}),
|
||||||
length = allMailboxes.length;
|
index = -1,
|
||||||
while (++index < length) {
|
length = allMailboxes.length;
|
||||||
mailboxes.push(allMailboxes[index]);
|
while (++index < length) {
|
||||||
}
|
mailboxes.push(allMailboxes[index]);
|
||||||
});
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// Set alternate avatar in User service
|
// Set alternate avatar in User service
|
||||||
statePreferences.ready().then(function() {
|
statePreferences.ready().then(function() {
|
||||||
|
|
Loading…
Reference in New Issue