fix(hot): layout.js
This commit is contained in:
parent
922d383c27
commit
6150c3ffad
1 changed files with 1 additions and 1 deletions
|
|
@ -507,7 +507,7 @@ frappe.ui.form.Layout = Class.extend({
|
|||
form_obj = this;
|
||||
}
|
||||
if (form_obj) {
|
||||
if (this.doc.parent) {
|
||||
if (this.doc && this.doc.parent) {
|
||||
form_obj.set_df_property(this.doc.parentfield, property, value, this.doc.parent, fieldname);
|
||||
} else {
|
||||
form_obj.set_df_property(fieldname, property, value);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue