mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
"bugfix: if no specific custom field is selected, show/query all custom fields"
This commit is contained in:
parent
48993a04dd
commit
c8ad252566
@ -821,10 +821,11 @@ class infolog_so
|
|||||||
|
|
||||||
$ids[$info['info_id']] = $info;
|
$ids[$info['info_id']] = $info;
|
||||||
}
|
}
|
||||||
if ($ids && ($query['custom_fields'] && strchr($query['selectcols'],'#') !== false || $query['csv_export']))
|
// if no specific custom field is selected, show/query all custom fields
|
||||||
|
if ($ids && ($query['custom_fields'] || $query['csv_export']))
|
||||||
{
|
{
|
||||||
$where = array('info_id' => array_keys($ids));
|
$where = array('info_id' => array_keys($ids));
|
||||||
if (!$query['csv_export'])
|
if (!($query['csv_export'] || strchr($query['selectcols'],'#') === false))
|
||||||
{
|
{
|
||||||
$where['info_extra_name'] = array();
|
$where['info_extra_name'] = array();
|
||||||
foreach(explode(',',$query['selectcols']) as $col)
|
foreach(explode(',',$query['selectcols']) as $col)
|
||||||
|
Loading…
Reference in New Issue
Block a user