Only reset template if it matches the index, fixes infolog gives no results in home favorite portlet

This commit is contained in:
Nathan Gray 2015-02-24 16:33:59 +00:00
parent 6c52c48866
commit 05ffcf9d7d

View File

@ -388,7 +388,12 @@ class infolog_ui
// check if we have a custom, type-specific template
$old_template = $query['template'];
// 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'])
{