mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-14 09:58:16 +01:00
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:
parent
123777682e
commit
2ec1a77daf
@ -718,6 +718,12 @@ class uicontacts extends bocontacts
|
|||||||
} else {
|
} else {
|
||||||
$old_state = $GLOBALS['egw']->session->appsession($do_email ? 'email' : 'index','addressbook');
|
$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 (isset($this->org_views[(string) $query['org_view']])) // we have an org view, reset the advanced search
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user