From c8ad2525662ae6add78ce7db3eedce5257010b60 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 30 Jun 2009 17:48:04 +0000 Subject: [PATCH] "bugfix: if no specific custom field is selected, show/query all custom fields" --- infolog/inc/class.infolog_so.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/infolog/inc/class.infolog_so.inc.php b/infolog/inc/class.infolog_so.inc.php index f9de5e2d22..56fd37819b 100644 --- a/infolog/inc/class.infolog_so.inc.php +++ b/infolog/inc/class.infolog_so.inc.php @@ -821,10 +821,11 @@ class infolog_so $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)); - if (!$query['csv_export']) + if (!($query['csv_export'] || strchr($query['selectcols'],'#') === false)) { $where['info_extra_name'] = array(); foreach(explode(',',$query['selectcols']) as $col)