diff --git a/NEWS b/NEWS index 0bd157c9e..4bd981906 100644 --- a/NEWS +++ b/NEWS @@ -4,6 +4,9 @@ Enhancements - [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) ------------------- diff --git a/UI/WebServerResources/js/Preferences/PreferencesController.js b/UI/WebServerResources/js/Preferences/PreferencesController.js index 4d347bb57..3cc80c154 100644 --- a/UI/WebServerResources/js/Preferences/PreferencesController.js +++ b/UI/WebServerResources/js/Preferences/PreferencesController.js @@ -45,17 +45,19 @@ vm.validateVacationEndDate = validateVacationEndDate; - // Fetch a flatten version of the mailboxes list of the main account (0) - // This list will be forwarded to the Sieve filter controller - account = new Account({ id: 0 }); - account.$getMailboxes().then(function() { - var allMailboxes = account.$flattenMailboxes({all: true}), - index = -1, - length = allMailboxes.length; - while (++index < length) { - mailboxes.push(allMailboxes[index]); - } - }); + if (sgSettings.activeUser('path').mail) { + // Fetch a flatten version of the mailboxes list of the main account (0) + // This list will be forwarded to the Sieve filter controller + account = new Account({ id: 0 }); + account.$getMailboxes().then(function() { + var allMailboxes = account.$flattenMailboxes({all: true}), + index = -1, + length = allMailboxes.length; + while (++index < length) { + mailboxes.push(allMailboxes[index]); + } + }); + } // Set alternate avatar in User service statePreferences.ready().then(function() {