forked from extern/egroupware
* addressbook: check if typefilter is valid (type available), if not remove it
This commit is contained in:
parent
fc6a432ce7
commit
fa065bb3c9
@ -334,6 +334,11 @@ class addressbook_ui extends addressbook_bo
|
|||||||
// be a bit more sophisticated asbout it
|
// be a bit more sophisticated asbout it
|
||||||
$content['nm']['header_right'] = 'addressbook.index.right_add';
|
$content['nm']['header_right'] = 'addressbook.index.right_add';
|
||||||
$availabletypes = array_keys($this->content_types);
|
$availabletypes = array_keys($this->content_types);
|
||||||
|
if ($content['nm']['col_filter']['tid'] && !in_array($content['nm']['col_filter']['tid'],$availabletypes))
|
||||||
|
{
|
||||||
|
//_debug_array(array('Typefilter:'=> $content['nm']['col_filter']['tid'],'Available Types:'=>$availabletypes,'action:'=>'remove invalid filter'));
|
||||||
|
unset($content['nm']['col_filter']['tid']);
|
||||||
|
}
|
||||||
if (!isset($content['nm']['col_filter']['tid'])) $content['nm']['col_filter']['tid'] = $availabletypes[0];
|
if (!isset($content['nm']['col_filter']['tid'])) $content['nm']['col_filter']['tid'] = $availabletypes[0];
|
||||||
if (count($this->content_types) > 1)
|
if (count($this->content_types) > 1)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user