fix: Revert "fix: refresh fields after changing form to read-only (#26439)"
This reverts commit cc8c0f917c.
This also reverts the attemped fix: #26983
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
parent
b91612bfa3
commit
216015f49e
1 changed files with 1 additions and 2 deletions
|
|
@ -671,7 +671,7 @@ frappe.ui.form.Form = class FrappeForm {
|
|||
}
|
||||
|
||||
refresh_fields() {
|
||||
this?.layout?.refresh(this.doc);
|
||||
this.layout.refresh(this.doc);
|
||||
this.layout.primary_button = this.$wrapper.find(".btn-primary");
|
||||
|
||||
// cleanup activities after refresh
|
||||
|
|
@ -1843,7 +1843,6 @@ frappe.ui.form.Form = class FrappeForm {
|
|||
email: p.email,
|
||||
};
|
||||
});
|
||||
this.refresh_fields();
|
||||
}
|
||||
|
||||
trigger(event, doctype, docname) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue