Skip to content

Commit

Permalink
(fix) broken top level mailbox creation
Browse files Browse the repository at this point in the history
  • Loading branch information
extrafu committed Aug 18, 2015
1 parent c5a219a commit d1446f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion UI/WebServerResources/js/Mailer/Account.service.js
Expand Up @@ -189,7 +189,8 @@
var _this = this,
deferred = Account.$q.defer();

Account.$$resource.post(path, 'createFolder', {name: name}).then(function() {
// Prefix '' to the path since we might get an integer here (account's id)
Account.$$resource.post('' + path, 'createFolder', {name: name}).then(function() {
_this.$getMailboxes({reload: true});
deferred.resolve();
}, function(response) {
Expand Down

0 comments on commit d1446f7

Please sign in to comment.