Merge pull request #18965 from netchampfaris/attach-field-in-table

fix(file): set fieldname to table fieldname
This commit is contained in:
Shariq Ansari 2022-11-22 13:14:01 +05:30 committed by GitHub
commit 4cd1d3c669
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -79,7 +79,7 @@ frappe.ui.form.ControlAttach = class ControlAttach extends frappe.ui.form.Contro
if (this.frm) {
options.doctype = this.frm.doctype;
options.docname = this.frm.docname;
options.fieldname = this.df.fieldname;
options.fieldname = this.grid ? this.grid.df.fieldname : this.df.fieldname;
options.make_attachments_public = this.frm.meta.make_attachments_public;
}