瀏覽代碼

fix: allow falsy values

Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
version-14
Raffael Meyer 3 年之前
committed by GitHub
父節點
當前提交
12f69fb399
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      frappe/public/js/frappe/form/form.js

+ 1
- 1
frappe/public/js/frappe/form/form.js 查看文件

@@ -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…
取消
儲存