Procházet zdrojové kódy

fix: remove duplicate parent when child item option selected (backport #15101) (#15110)

Co-authored-by: Bhavesh Maheshwari <bhavesh.freelancer95863@gmail.com>
version-14
mergify[bot] před 3 roky
committed by GitHub
rodič
revize
4cae147aed
V databázi nebyl nalezen žádný známý klíč pro tento podpis ID GPG klíče: 4AEE18F83AFDEB23
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. +3
    -1
      frappe/public/js/frappe/form/multi_select_dialog.js

+ 3
- 1
frappe/public/js/frappe/form/multi_select_dialog.js Zobrazit soubor

@@ -325,7 +325,9 @@ frappe.ui.form.MultiSelectDialog = class MultiSelectDialog {
let parent_names = this.child_datatable.rowmanager.checkMap.reduce((parent_names, checked, index) => {
if (checked == 1) {
const parent_name = this.child_results[index].parent;
parent_names.push(parent_name);
if (!parent_names.includes(parent_name)) {
parent_names.push(parent_name);
}
}
return parent_names;
}, []);


Načítá se…
Zrušit
Uložit