Merge pull request #38506 from safwansamsudeen/fix-file-attachments-link
fix: attachments file link incorrect
This commit is contained in:
commit
4d1aaf5932
1 changed files with 7 additions and 1 deletions
|
|
@ -48,7 +48,13 @@ frappe.ui.form.on("File", {
|
|||
const field = frm.get_field("attached_to_name");
|
||||
field.$input_wrapper
|
||||
.find(".control-value")
|
||||
.html(`${frappe.utils.get_form_link(frm.doctype, frm.docname, true)}`);
|
||||
.html(
|
||||
`${frappe.utils.get_form_link(
|
||||
frm.doc.attached_to_doctype,
|
||||
frm.doc.attached_to_name,
|
||||
true
|
||||
)}`
|
||||
);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue