Cleanup the code
This commit is contained in:
parent
c8e1001572
commit
ab077e99e9
1 changed files with 6 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue