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:
commit
ffec04501c
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue