fixing of an orgview bug: orgview was extremly sticky, after you selected an org member for e.g. infolog view

This commit is contained in:
Klaus Leithoff 2010-03-01 10:22:43 +00:00
parent 2b0d9f5b43
commit 30b683cf5a

View File

@ -332,6 +332,13 @@ class addressbook_ui extends addressbook_bo
$org_name = implode(': ',$org_name);
$sel_options['org_view'][(string) $content['nm']['org_view']] = $org_name;
}
// unset the filters regarding organisations, when there is no organisation selected
if (empty($sel_options['org_view'][(string) $content['nm']['org_view']]) || stripos($org_view,":") === false )
{
unset($content['nm']['col_filter']['org_name']);
unset($content['nm']['col_filter']['org_unit']);
unset($content['nm']['col_filter']['adr_one_locality']);
}
$content['nm']['org_view_label'] = $sel_options['org_view'][(string) $content['nm']['org_view']];
$this->tmpl->read(/*$do_email ? 'addressbook.email' :*/ 'addressbook.index');