mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
fix foldertree.getLabel(folder).replace() is not a function
This commit is contained in:
parent
63ea0891bb
commit
e188c9f904
@ -426,7 +426,8 @@ app.classes.mail = AppJS.extend(
|
|||||||
if (foldertree && pushData.acl.folder && typeof pushData.acl.unseen !== 'undefined')
|
if (foldertree && pushData.acl.folder && typeof pushData.acl.unseen !== 'undefined')
|
||||||
{
|
{
|
||||||
let folder_id = {};
|
let folder_id = {};
|
||||||
folder_id[folder] = foldertree.getLabel(folder).replace(this._unseen_regexp, '')+
|
folder_id[folder] = (foldertree.getLabel(folder) || pushData.acl.folder)
|
||||||
|
.replace(this._unseen_regexp, '')+
|
||||||
(pushData.acl.unseen ? " ("+pushData.acl.unseen+")" : '');
|
(pushData.acl.unseen ? " ("+pushData.acl.unseen+")" : '');
|
||||||
this.mail_setFolderStatus(folder_id);
|
this.mail_setFolderStatus(folder_id);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user