Cleanup the code

This commit is contained in:
Rohit Waghchaure 2017-03-27 13:13:41 +05:30
parent c8e1001572
commit ab077e99e9

View file

@ -30,11 +30,15 @@ frappe.ui.form.on('Role Permission for Page and Report', {
},
page: function(frm) {
frm.trigger("get_roles")
if(frm.doc.page) {
frm.trigger("get_roles")
}
},
report: function(frm){
frm.trigger("get_roles")
if(frm.doc.report) {
frm.trigger("get_roles")
}
},
get_roles: function(frm) {