diff --git a/modules/Users/models/Record.php b/modules/Users/models/Record.php index b2996ec79343aefe7e2d03c11521e6ea21f66b99..206b8aac48a07bbea5c097cb9049585292f4e989 100644 --- a/modules/Users/models/Record.php +++ b/modules/Users/models/Record.php @@ -506,13 +506,20 @@ class Users_Record_Model extends Vtiger_Record_Model { * @return <Array> */ public function getAccessibleGroups($private="",$module = false) { + global $default_charset; //TODO:Remove dependence on $_REQUEST for the module name in the below API $accessibleGroups = Vtiger_Cache::get('vtiger-'.$private, 'accessiblegroups'); if(!$accessibleGroups){ $accessibleGroups = get_group_array(false, "ACTIVE", "", $private,$module); Vtiger_Cache::set('vtiger-'.$private, 'accessiblegroups',$accessibleGroups); } - return $accessibleGroups; + if (!empty($accessibleGroups)) { + foreach ($accessibleGroups as $groupId => $groupName) { + $accessibleGroups[$groupId] = html_entity_decode($groupName, ENT_QUOTES, $default_charset); + } + } + + return $accessibleGroups; } /**