grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026assign('MOD', $mod_strings); $sugar_smarty->assign('APP', $app_strings); $sugar_smarty->assign('ISDUPLICATE', ''); $duplicateString=''; //mass localization /*foreach($modInvisList as $modinvisname){ $app_list_strings['moduleList'][$modinvisname] = $modinvisname; }*/ $sugar_smarty->assign('APP_LIST', $app_list_strings); /*foreach($modInvisList as $modinvisname){ unset($app_list_strings['moduleList'][$modinvisname]); }*/ $role = new ACLRole(); $role_name = ''; $return= array('module'=>'ACLRoles', 'action'=>'index', 'record'=>''); if (!empty($_REQUEST['record'])) { $role->retrieve($_REQUEST['record']); $categories = ACLRole::getRoleActions($_REQUEST['record']); $role_name = $role->name; if (!empty($_REQUEST['isDuplicate'])) { //role id is stripped here in duplicate so anything using role id after this will not have it $role->id = ''; $sugar_smarty->assign('ISDUPLICATE', $_REQUEST['record']); $duplicateString=translate('LBL_DUPLICATE_OF', 'ACLRoles'); } else { $return['record']= $role->id; $return['action']='DetailView'; } } else { $categories = ACLRole::getRoleActions(''); } $sugar_smarty->assign('ROLE', $role->toArray()); $tdwidth = 10; if (isset($_REQUEST['return_module'])) { $return['module']=$_REQUEST['return_module']; if (isset($_REQUEST['return_id'])) { $return['record']=$_REQUEST['return_id']; } if (isset($_REQUEST['return_record'])) { $return['record']=$_REQUEST['return_record']; } if (isset($_REQUEST['return_action'])) { $return['action']=$_REQUEST['return_action']; } if (!empty($return['record'])) { $return['action'] = 'DetailView'; } } $sugar_smarty->assign('RETURN', $return); $names = ACLAction::setupCategoriesMatrix($categories); $sugar_smarty->assign('CATEGORIES', $categories); $sugar_smarty->assign('TDWIDTH', $tdwidth); $sugar_smarty->assign('ACTION_NAMES', $names); $params = array(); $params[] = "{$mod_strings['LBL_MODULE_NAME']}"; if (empty($role->id)) { $params[] = $GLOBALS['app_strings']['LBL_CREATE_BUTTON_LABEL']; } else { $params[] = $role->get_summary_text(); } echo getClassicModuleTitle("ACLRoles", $params, true); $buttons = array( "", "", ); $action_buttons = $buttons; $sugar_smarty->assign('ACTION_MENU', $action_buttons); echo $sugar_smarty->fetch('modules/ACLRoles/EditView.tpl');