Merge pull request #34141 from asmitahase/undefined-this
This commit is contained in:
commit
98d25b31cd
1 changed files with 1 additions and 1 deletions
|
|
@ -336,7 +336,7 @@ frappe.ui.form.Toolbar = class Toolbar {
|
|||
) {
|
||||
this.page.add_menu_item(
|
||||
__("Discard"),
|
||||
function () {
|
||||
() => {
|
||||
this.frm._discard();
|
||||
},
|
||||
true
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue