mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
fix for ticket 91761
-- get correct account Id now
This commit is contained in:
parent
1d591d5d2b
commit
a572815fdb
@ -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)
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user