Merge pull request #13364 from frappe/mergify/bp/develop/pr-13355
fix: refresh form section while refreshing the field (backport #13355)
This commit is contained in:
commit
8935001f1f
1 changed files with 2 additions and 0 deletions
|
|
@ -175,6 +175,7 @@ frappe.ui.form.Form = class FrappeForm {
|
|||
field && ["Link", "Dynamic Link"].includes(field.df.fieldtype) && field.validate && field.validate(value);
|
||||
|
||||
me.layout.refresh_dependency();
|
||||
me.layout.refresh_sections();
|
||||
let object = me.script_manager.trigger(fieldname, doc.doctype, doc.name);
|
||||
return object;
|
||||
}
|
||||
|
|
@ -1078,6 +1079,7 @@ frappe.ui.form.Form = class FrappeForm {
|
|||
if (this.fields_dict[fname] && this.fields_dict[fname].refresh) {
|
||||
this.fields_dict[fname].refresh();
|
||||
this.layout.refresh_dependency();
|
||||
this.layout.refresh_sections();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue