Sfoglia il codice sorgente

[fix] not able to cancel frappe/erpnext#9605

version-14
Rushabh Mehta 8 anni fa
parent
commit
89c3d804f1
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      frappe/public/js/legacy/form.js

+ 1
- 1
frappe/public/js/legacy/form.js Vedi File

@@ -798,7 +798,7 @@ _f.Frm.prototype.savecancel = function(btn, callback, on_error) {
this.validate_form_action('Cancel'); this.validate_form_action('Cancel');
frappe.confirm(__("Permanently Cancel {0}?", [this.docname]), function() { frappe.confirm(__("Permanently Cancel {0}?", [this.docname]), function() {
frappe.validated = true; frappe.validated = true;
me.script_manager.trigger("before_cancel").done(function() {
me.script_manager.trigger("before_cancel").then(function() {
if(!frappe.validated) { if(!frappe.validated) {
if(on_error) if(on_error)
on_error(); on_error();


Caricamento…
Annulla
Salva