[fix] not able to cancel frappe/erpnext#9605
This commit is contained in:
parent
10318c3f12
commit
89c3d804f1
1 changed files with 1 additions and 1 deletions
|
|
@ -798,7 +798,7 @@ _f.Frm.prototype.savecancel = function(btn, callback, on_error) {
|
|||
this.validate_form_action('Cancel');
|
||||
frappe.confirm(__("Permanently Cancel {0}?", [this.docname]), function() {
|
||||
frappe.validated = true;
|
||||
me.script_manager.trigger("before_cancel").done(function() {
|
||||
me.script_manager.trigger("before_cancel").then(function() {
|
||||
if(!frappe.validated) {
|
||||
if(on_error)
|
||||
on_error();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue