Merge pull request #35218 from karthicktridots/fix-custom-buttons-issue-34920

fix: restore custom_buttons tracking in add_custom_button
This commit is contained in:
Ejaaz Khan 2026-01-22 13:33:39 +05:30 committed by GitHub
commit ffec04501c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1509,7 +1509,9 @@ frappe.ui.form.Form = class FrappeForm {
if (group && group.indexOf("fa fa-") !== -1) group = null;
let btn = this.page.add_inner_button(label, fn, group);
if (btn) {
this.custom_buttons[label] = btn;
}
return btn;
}