mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-19 01:25:07 +00:00
replace cur_frm with frm
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user