From b38f020e3206de2189f20acd15daa0356b5c6763 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 16 May 2006 17:02:12 +0000 Subject: [PATCH] fixed bug no addresses show, if only one contact type defined --- addressbook/inc/class.uicontacts.inc.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addressbook/inc/class.uicontacts.inc.php b/addressbook/inc/class.uicontacts.inc.php index 3427b420e2..b522b1b618 100644 --- a/addressbook/inc/class.uicontacts.inc.php +++ b/addressbook/inc/class.uicontacts.inc.php @@ -164,7 +164,7 @@ class uicontacts extends bocontacts // dont show tid-selection if we have only one content_type if (count($this->content_types) <= 1) { - $preserv['tid'] = 'n'; + $content['nm']['col_filter']['tid'] = 'n'; } else { @@ -174,7 +174,6 @@ class uicontacts extends bocontacts $sel_options['col_filter[tid]'][$tid] = $data['name']; } } - // get the availible org-views plus the label of the contacts view of one org $sel_options['org_view'] = $this->org_views; if (isset($org_view)) $content['nm']['org_view'] = $org_view;