fixed bug no addresses show, if only one contact type defined

This commit is contained in:
Ralf Becker 2006-05-16 17:02:12 +00:00
parent 8c0945b4d0
commit b38f020e32

View File

@ -164,7 +164,7 @@ class uicontacts extends bocontacts
// dont show tid-selection if we have only one content_type // dont show tid-selection if we have only one content_type
if (count($this->content_types) <= 1) if (count($this->content_types) <= 1)
{ {
$preserv['tid'] = 'n'; $content['nm']['col_filter']['tid'] = 'n';
} }
else else
{ {
@ -174,7 +174,6 @@ class uicontacts extends bocontacts
$sel_options['col_filter[tid]'][$tid] = $data['name']; $sel_options['col_filter[tid]'][$tid] = $data['name'];
} }
} }
// get the availible org-views plus the label of the contacts view of one org // get the availible org-views plus the label of the contacts view of one org
$sel_options['org_view'] = $this->org_views; $sel_options['org_view'] = $this->org_views;
if (isset($org_view)) $content['nm']['org_view'] = $org_view; if (isset($org_view)) $content['nm']['org_view'] = $org_view;