laiguoran 4 anni fa
parent
commit
2b7791fca4
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  1. 6 0
      app/public/js/schedule_ledger.js

+ 6 - 0
app/public/js/schedule_ledger.js

@@ -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);
+                    }
                 }
             }
         }