瀏覽代碼

fix: do not validate if options is undefined

version-14
Shariq Ansari 3 年之前
父節點
當前提交
0fd20c7862
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. +2
    -0
      frappe/public/js/frappe/form/controls/link.js

+ 2
- 0
frappe/public/js/frappe/form/controls/link.js 查看文件

@@ -456,6 +456,8 @@ frappe.ui.form.ControlLink = class ControlLink extends frappe.ui.form.ControlDat
this.docname, value); this.docname, value);
} }
validate_link_and_fetch(df, options, docname, value) { validate_link_and_fetch(df, options, docname, value) {
if (!options) return;

let field_value = ""; let field_value = "";
const fetch_map = this.fetch_map; const fetch_map = this.fetch_map;
const columns_to_fetch = Object.values(fetch_map); const columns_to_fetch = Object.values(fetch_map);


Loading…
取消
儲存