Skip to content

Commit

Permalink
fix: Use frm instead of this (#1990)
Browse files Browse the repository at this point in the history
(cherry picked from commit 82dd597)
  • Loading branch information
marination authored and mergify[bot] committed Jul 21, 2024
1 parent e694a0e commit f941585
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hrms/hr/doctype/leave_application/leave_application.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ frappe.ui.form.on("Leave Application", {
frm.perm[0].submit &&
!frm.is_dirty() &&
!frm.is_new() &&
!frappe.model.has_workflow(this.doctype) &&
!frappe.model.has_workflow(frm.doctype) &&
frm.doc.docstatus === 0
) {
frm.set_intro(__("Submit this Leave Application to confirm."));
Expand Down

0 comments on commit f941585

Please sign in to comment.