Skip to content

Commit

Permalink
fix: Use frm instead of this (backport #1990) (#1994)
Browse files Browse the repository at this point in the history
(cherry picked from commit 82dd597)

Co-authored-by: Marica <[email protected]>
  • Loading branch information
mergify[bot] and marination authored Jul 21, 2024
1 parent dadf61e commit 90721c4
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 @@ -102,7 +102,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 90721c4

Please sign in to comment.