(js) Fix access to sub mailbox on page reload

This commit is contained in:
Francis Lachapelle
2019-06-27 11:56:44 -04:00
parent fd38816a8c
commit cc6fcc5fbd
4 changed files with 4 additions and 3 deletions
+1
View File
@@ -23,6 +23,7 @@ Bug fixes
- [web] fixed useless scrolling when deleting a message
- [web] don't hide compose button if messages list is visible
- [web] fixed next/previous slots with external attendees
- [web] fixed restoration of sub mailbox when reloading page
- [core] allow super users to modify any event (#4216)
- [core] correctly handle the full cert chain in S/MIME
- [core] handle multidays events in freebusy data
@@ -190,7 +190,7 @@
stateMailbox.$inject = ['$q', '$stateParams', 'stateAccount', 'decodeUriFilter', 'Mailbox'];
function stateMailbox($q, $stateParams, stateAccount, decodeUriFilter, Mailbox) {
var mailbox,
mailboxId = decodeUriFilter($stateParams.mailboxId),
mailboxId = decodeUriFilter(decodeUriFilter($stateParams.mailboxId)),
_find;
// Recursive find function
@@ -91,7 +91,7 @@
if ($event) {
$state.go('mail.account.mailbox', {
accountId: this.mailbox.$account.id,
mailboxId: encodeUriFilter(this.mailbox.path)
mailboxId: encodeUriFilter(encodeUriFilter(this.mailbox.path))
});
$event.stopPropagation();
$event.preventDefault();
+1 -1
View File
@@ -11,7 +11,7 @@
"angular-material": "1.1.19",
"angular-messages": "1.7.x",
"angular-sanitize": "1.7.x",
"angular-ui-router": "1.0.20",
"angular-ui-router": "1.0.x",
"file-saver": "latest",
"lodash": "latest",
"ng-sortable": "1.3.7"