Merge pull request #13188 from frappe/mergify/bp/version-13-hotfix/pr-13106
fix: Use docfields from options if no docfields are returned from meta (backport #13106)
This commit is contained in:
commit
6f359bedbc
1 changed files with 2 additions and 1 deletions
|
|
@ -7,7 +7,8 @@ export default class GridRow {
|
|||
$.extend(this, opts);
|
||||
if (this.doc && this.parent_df.options) {
|
||||
frappe.meta.make_docfield_copy_for(this.parent_df.options, this.doc.name, this.docfields);
|
||||
this.docfields = frappe.meta.get_docfields(this.parent_df.options, this.doc.name);
|
||||
const docfields = frappe.meta.get_docfields(this.parent_df.options, this.doc.name);
|
||||
this.docfields = docfields.length ? docfields : opts.docfields;
|
||||
}
|
||||
this.columns = {};
|
||||
this.columns_list = [];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue