* LDAP/AD/UCS/Filemanager: group-names were displayed as "#123" instead of name

caused by LDAP backend needs correct negative sign for groups, while SQL backend finds groups also with there positive id
This commit is contained in:
Ralf Becker 2015-03-27 09:29:11 +00:00
parent 4eac3a7c70
commit cdf486ac51

View File

@ -872,13 +872,14 @@ class filemanager_ui
$row['class'] = 'isDir'; $row['class'] = 'isDir';
} }
$row['download_url'] = egw_vfs::download_url($path); $row['download_url'] = egw_vfs::download_url($path);
$row['gid'] = -abs($row['gid']); // gid are positive, but we use negagive account_id for groups internal
$rows[++$n] = $row; $rows[++$n] = $row;
$path2n[$path] = $n; $path2n[$path] = $n;
} }
// query comments and cf's for the displayed rows // query comments and cf's for the displayed rows
$cols_to_show = explode(',',$GLOBALS['egw_info']['user']['preferences']['filemanager']['nextmatch-filemanager.index.rows']); $cols_to_show = explode(',',$GLOBALS['egw_info']['user']['preferences']['filemanager']['nextmatch-filemanager.index.rows']);
// Always include comment in tiles // Always include comment in tiles
if($query['view'] == 'tile') if($query['view'] == 'tile')
{ {