fix for ticket 91761

-- get correct account Id now
This commit is contained in:
milan 2024-03-07 14:46:00 +01:00
parent 1d591d5d2b
commit a572815fdb
2 changed files with 3 additions and 3 deletions

View File

@ -883,7 +883,7 @@ export class Et2Tree extends Et2WidgetWithSelectMixin(LitElement)
res = value res = value
return res return res
} }
else if(_id.startsWith(value.id) && typeof value.item !== "undefined") else if(_id?.startsWith(value.id) && typeof value.item !== "undefined")
{ {
res = this._search(_id, value.item) res = this._search(_id, value.item)
} }

View File

@ -1890,8 +1890,8 @@ app.classes.mail = AppJS.extend(
archivefolder_enabled: function(_action,_senders,_currentNode) archivefolder_enabled: function(_action,_senders,_currentNode)
{ {
var ftree = this.et2.getWidgetById(this.nm_index+'[foldertree]'); var ftree = this.et2.getWidgetById(this.nm_index+'[foldertree]');
var acc_id = _senders[0].id.split('::')[2]; // this is operating on mails var acc_id = _currentNode.id.split('::')[2]; // this is operating on mails
var node = ftree ? ftree.getNode(acc_id) : null; var node = ftree && acc_id ? ftree.getNode(acc_id) : null;
return node && node.data && node.data.archivefolder; return node && node.data && node.data.archivefolder;
}, },