fix: add id to download button
This commit is contained in:
parent
cdb50bde65
commit
57578c8b9e
1 changed files with 1 additions and 1 deletions
|
|
@ -90,7 +90,7 @@ frappe.ui.form.on("File", {
|
|||
},
|
||||
|
||||
download: function (frm) {
|
||||
let file_url = frm.doc.file_url;
|
||||
let file_url = frm.doc.file_url + "?fid=" + frm.doc.name;
|
||||
if (frm.doc.file_name) {
|
||||
file_url = file_url.replace(/#/g, "%23");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue