fixed not working selection of multiple org's in org-view

This commit is contained in:
Ralf Becker 2006-12-13 13:39:00 +00:00
parent 4a58dcb45a
commit 4076328613

View File

@ -351,7 +351,7 @@ class uicontacts extends bocontacts
{ {
if (substr($id,0,9) == 'org_name:') if (substr($id,0,9) == 'org_name:')
{ {
if (count($checked) == 1) if (count($checked) == 1 && !count($org_contacts))
{ {
return $this->infolog_org_view($id); // uses the org-name, instead of 'selected contacts' return $this->infolog_org_view($id); // uses the org-name, instead of 'selected contacts'
} }
@ -364,7 +364,7 @@ class uicontacts extends bocontacts
} }
} }
if ($org_contacts) $checked = array_unique($checked ? array_merge($checked,$org_contacts) : $org_contacts); if ($org_contacts) $checked = array_unique($checked ? array_merge($checked,$org_contacts) : $org_contacts);
//_debug_array($checked); return false; //_debug_array($checked); exit;
switch($action) switch($action)
{ {