mirror of
https://github.com/roundcube/roundcubemail.git
synced 2026-03-10 10:06:52 +01:00
Fix bug where a new saved search added after removing all searches wasn't added to the list (#7061)
This commit is contained in:
@@ -526,7 +526,11 @@ function rcube_treelist_widget(node, p)
|
||||
// remove tree-toggle button and children list
|
||||
if (!parent.children().length) {
|
||||
parent.parent('li').find('div.treetoggle').remove();
|
||||
parent.remove();
|
||||
|
||||
// remove parent, but not if it's the list itself
|
||||
if (parent[0] != container[0]) {
|
||||
parent.remove();
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user