Merge pull request #18965 from netchampfaris/attach-field-in-table
fix(file): set fieldname to table fieldname
This commit is contained in:
commit
4cd1d3c669
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue