|
@@ -290,15 +290,21 @@ function updateOtherSiblingsSelect(tree, pid, is_select, select_msg) {
|
|
|
if (grandparent) {
|
|
|
for (const d of grandparent.children) {
|
|
|
if (d.ledger_id !== pid) {
|
|
|
+ let p = false;
|
|
|
if(d.children && d.children.length > 0) {
|
|
|
for (const dd of d.children) {
|
|
|
dd.is_select = is_select;
|
|
|
+ p = true;
|
|
|
if (select_msg.select_children || is_select === 0) {
|
|
|
updateChildrenSelect(dd.children, is_select);
|
|
|
}
|
|
|
selects.push(dd);
|
|
|
}
|
|
|
}
|
|
|
+ if(p) {
|
|
|
+ d.is_select = is_select;
|
|
|
+ selects.push(d);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|