浏览代码

fix: Don't overwrite source_name if source_name is defined (bp #12280) (#12341)

Co-authored-by: Richard Case <64409021+casesolved-co-uk@users.noreply.github.com>
Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
version-14
mergify[bot] 4 年前
committed by GitHub
父节点
当前提交
1133f40dd2
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. +1
    -3
      frappe/public/js/frappe/model/create_new.js

+ 1
- 3
frappe/public/js/frappe/model/create_new.js 查看文件

@@ -362,9 +362,7 @@ $.extend(frappe.model, {
);
} else if (!opts.source_name && opts.frm) {
opts.source_name = opts.frm.doc.name;

// Allow opening a mapped doc without a source document name
} else if (!opts.frm) {
} else if (!opts.frm && !opts.source_name) {
opts.source_name = null;
}



正在加载...
取消
保存