Merge pull request #2939 from rohitwaghchaure/minor_fix_report_page_role
Cleanup the code
This commit is contained in:
commit
e5f9b2f3ea
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