diff --git a/erpnext/hr/doctype/leave_allocation/leave_allocation.js b/erpnext/hr/doctype/leave_allocation/leave_allocation.js index a184cc7d15..e9e129cdd2 100755 --- a/erpnext/hr/doctype/leave_allocation/leave_allocation.js +++ b/erpnext/hr/doctype/leave_allocation/leave_allocation.js @@ -6,7 +6,7 @@ cur_frm.add_fetch('employee','employee_name','employee_name'); frappe.ui.form.on("Leave Allocation", { onload: function(frm) { // Ignore cancellation of doctype on cancel all. - frm.ignored_doctypes_on_cancel_all = ["Leave Ledger Entry"]; + frm.ignore_doctypes_on_cancel_all = ["Leave Ledger Entry"]; if(!frm.doc.from_date) frm.set_value("from_date", frappe.datetime.get_today()); diff --git a/erpnext/hr/doctype/leave_application/leave_application.js b/erpnext/hr/doctype/leave_application/leave_application.js index a0cce0a80f..d62e418b17 100755 --- a/erpnext/hr/doctype/leave_application/leave_application.js +++ b/erpnext/hr/doctype/leave_application/leave_application.js @@ -21,7 +21,7 @@ frappe.ui.form.on("Leave Application", { onload: function(frm) { // Ignore cancellation of doctype on cancel all. - frm.ignored_doctypes_on_cancel_all = ["Leave Ledger Entry"]; + frm.ignore_doctypes_on_cancel_all = ["Leave Ledger Entry"]; if (!frm.doc.posting_date) { frm.set_value("posting_date", frappe.datetime.get_today()); diff --git a/erpnext/hr/doctype/leave_encashment/leave_encashment.js b/erpnext/hr/doctype/leave_encashment/leave_encashment.js index d5e7adab74..71a34226da 100644 --- a/erpnext/hr/doctype/leave_encashment/leave_encashment.js +++ b/erpnext/hr/doctype/leave_encashment/leave_encashment.js @@ -4,7 +4,7 @@ frappe.ui.form.on('Leave Encashment', { onload: function(frm) { // Ignore cancellation of doctype on cancel all. - frm.ignored_doctypes_on_cancel_all = ["Leave Ledger Entry"]; + frm.ignore_doctypes_on_cancel_all = ["Leave Ledger Entry"]; }, setup: function(frm) { frm.set_query("leave_type", function() {