From db8b9cc4286b8938a55fa51ff6ed92188f9aae78 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 2 Apr 2008 08:24:52 +0000 Subject: [PATCH] "query and display only selected cfs" --- addressbook/inc/class.uicontacts.inc.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/addressbook/inc/class.uicontacts.inc.php b/addressbook/inc/class.uicontacts.inc.php index 736a73f5f6..a911298b07 100644 --- a/addressbook/inc/class.uicontacts.inc.php +++ b/addressbook/inc/class.uicontacts.inc.php @@ -955,7 +955,14 @@ class uicontacts extends bocontacts { $ids[] = $val['id']; } - if ($show_custom_fields) $customfields = $this->read_customfields($ids); + if ($show_custom_fields) + { + foreach($columselection as $col) + { + if ($col[0] == '#') $selected_cfs[] = substr($col,1); + } + $customfields = $this->read_customfields($ids,$selected_cfs); + } if ($show_calendar) $calendar = $this->read_calendar($ids); // distributionlist memership for the entrys //_debug_array($this->get_lists(EGW_ACL_EDIT));