Merge pull request #13211 from prssanna/dependant-property-fix

fix: check if parentfield also exists
This commit is contained in:
mergify[bot] 2021-05-16 03:08:42 +00:00 committed by GitHub
commit ad65ad43c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -510,7 +510,7 @@ frappe.ui.form.Layout = Class.extend({
form_obj = this;
}
if (form_obj) {
if (this.doc && this.doc.parent) {
if (this.doc && this.doc.parent && this.doc.parentfield) {
form_obj.setting_dependency = true;
form_obj.set_df_property(this.doc.parentfield, property, value, this.doc.parent, fieldname, this.doc.name);
form_obj.setting_dependency = false;