attempt to fix the problem with the stick org_view problem in addressbook. col_filter is not reseted if org_view criteria is set to all.

This commit is contained in:
Klaus Leithoff 2008-03-10 12:34:57 +00:00
parent 2b2b88c35c
commit d3165294c6

View File

@ -681,6 +681,12 @@ class uicontacts extends bocontacts
{
$do_email = $query['do_email'];
$old_state = $GLOBALS['egw']->session->appsession($do_email ? 'email' : 'index','addressbook');
if (!isset($this->org_views[(string) $query['org_view']])) // we dont have an org view, unset the according col_filters
{
if (isset($query['col_filter']['org_name'])) unset($query['col_filter']['org_name']);
if (isset($query['col_filter']['adr_one_locality'])) unset($query['col_filter']['adr_one_locality']);
if (isset($query['col_filter']['org_unit'])) unset($query['col_filter']['org_unit']);
}
if (isset($this->org_views[(string) $query['org_view']])) // we have an org view, reset the advanced search
{
if (is_array($query['search'])) unset($query['search']);