diff --git a/layouts/v7/modules/Settings/Roles/resources/Roles.js b/layouts/v7/modules/Settings/Roles/resources/Roles.js index fae93e891a247e882ed251bd68b735cb637001a8..ec6b97cabdaa5743bd76fedba6ac455963542953 100644 --- a/layouts/v7/modules/Settings/Roles/resources/Roles.js +++ b/layouts/v7/modules/Settings/Roles/resources/Roles.js @@ -214,9 +214,11 @@ var Settings_Roles_Js = { /** * To register Profile Edit View Events */ + _registeredProfileEvents: false, registerProfileEvents : function() { - if(typeof window['Settings_Profiles_Edit_Js'] != 'undefined'){ + if(!this._registeredProfileEvents && typeof window['Settings_Profiles_Edit_Js'] != 'undefined'){ var instance = new Settings_Profiles_Edit_Js(); + this._registeredProfileEvents = true; } }, @@ -397,4 +399,4 @@ Vtiger.Class("Settings_Roles_Edit_Js",{},{ addComponents : function() { this.addModuleSpecificComponent('Index','Vtiger',app.getParentModuleName()); } -}); \ No newline at end of file +});