From 05ffcf9d7d1366d08af27bc38e88f4b1d4b152db Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 24 Feb 2015 16:33:59 +0000 Subject: [PATCH] Only reset template if it matches the index, fixes infolog gives no results in home favorite portlet --- infolog/inc/class.infolog_ui.inc.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/infolog/inc/class.infolog_ui.inc.php b/infolog/inc/class.infolog_ui.inc.php index 93e942043f..9970350346 100644 --- a/infolog/inc/class.infolog_ui.inc.php +++ b/infolog/inc/class.infolog_ui.inc.php @@ -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']) {