chore: drop dead comment
This commit is contained in:
parent
fa18de6302
commit
657faea60d
2 changed files with 1 additions and 1 deletions
|
|
@ -1075,6 +1075,7 @@ class Document(BaseDocument):
|
|||
|
||||
self.run_method("before_discard")
|
||||
self.db_set("docstatus", DocStatus.cancelled())
|
||||
delattr(self, "_action")
|
||||
self.run_method("on_discard")
|
||||
|
||||
@frappe.whitelist()
|
||||
|
|
|
|||
|
|
@ -836,7 +836,6 @@ frappe.ui.form.Form = class FrappeForm {
|
|||
discard(btn, callback, on_error) {
|
||||
const me = this;
|
||||
return new Promise((resolve) => {
|
||||
// this.validate_form_action("Discard") // ?
|
||||
frappe.confirm(__("Discard {0}", [this.docname]), function () {
|
||||
me.script_manager.trigger("before_discard").then(function () {
|
||||
return me._discard(btn, callback, on_error, false); // ?
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue