Selaa lähdekoodia

refactor: use frappe.model.has_value to determine if field is empty

version-14
barredterra 3 vuotta sitten
vanhempi
commit
118d928628
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. +1
    -1
      frappe/public/js/frappe/form/form.js

+ 1
- 1
frappe/public/js/frappe/form/form.js Näytä tiedosto

@@ -1708,7 +1708,7 @@ frappe.ui.form.Form = class FrappeForm {

frappe.model
.get_children(this.doc, table_fieldname)
.filter(child => !child[fieldname])
.filter(child => !frappe.model.has_value(child.doctype, child.name, fieldname))
.forEach(child =>
frappe.model.set_value(child.doctype, child.name, fieldname, value)
);


Ladataan…
Peruuta
Tallenna