mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Only reset template if it matches the index, fixes infolog gives no results in home favorite portlet
This commit is contained in:
parent
6c52c48866
commit
05ffcf9d7d
@ -388,7 +388,12 @@ class infolog_ui
|
||||
|
||||
// check if we have a custom, type-specific template
|
||||
$old_template = $query['template'];
|
||||
$query['template'] = 'infolog.index.rows';
|
||||
|
||||
// Reset custom, type-specific template if type was cleared (without changing it for home)
|
||||
if(!$query['template'] || stripos($query['template'], 'infolog.index.rows') === 0)
|
||||
{
|
||||
$query['template'] = 'infolog.index.rows';
|
||||
}
|
||||
unset($query['custom_fields']);
|
||||
if ($query['col_filter']['info_type'])
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user