replace cur_frm with frm

This commit is contained in:
Zarrar 2018-08-12 17:48:04 +05:30 committed by GitHub
parent 7df03a4b5b
commit a4d06fc881
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,8 +5,8 @@ frappe.ui.form.on('Department', {
refresh: function(frm) {
// read-only for root department
if(!frm.doc.parent_department) {
cur_frm.set_read_only();
cur_frm.set_intro(__("This is a root department and cannot be edited."));
frm.set_read_only();
frm.set_intro(__("This is a root department and cannot be edited."));
}
},
validate: function(frm) {