浏览代码

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 密钥 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 // Update the `value` of the field named `fieldname` in all rows of the
// child table named `table_fieldname`. // child table named `table_fieldname`.
// Do not overwrite existing values. // Do not overwrite existing values.
if (!value) return;
if (value === undefined) return;


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


正在加载...
取消
保存