Browse Source

fix: allow falsy values

Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
version-14
Raffael Meyer 3 years ago
committed by GitHub
parent
commit
12f69fb399
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frappe/public/js/frappe/form/form.js

+ 1
- 1
frappe/public/js/frappe/form/form.js View File

@@ -1704,7 +1704,7 @@ frappe.ui.form.Form = class FrappeForm {
// Update the `value` of the field named `fieldname` in all rows of the
// child table named `table_fieldname`.
// Do not overwrite existing values.
if (!value) return;
if (value === undefined) return;

frappe.model
.get_children(this.doc, table_fieldname)


Loading…
Cancel
Save