From 64843689f2bbf40ec95502e1abeb17969d1204f1 Mon Sep 17 00:00:00 2001 From: Matus <sopko@its4you.sk> Date: Tue, 5 May 2020 10:48:20 +0200 Subject: [PATCH] List view search by groups does not work properly --- modules/Users/models/Record.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/Users/models/Record.php b/modules/Users/models/Record.php index b2996ec79..206b8aac4 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; } /** -- GitLab