From 7f176d54f165c15fb13ea0db4572a9bea06ddc44 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 2 Dec 2013 20:11:47 +0000 Subject: [PATCH] Add a fallback to the fallback. If an app doesn't support 'list' link entry, use 'index' --- etemplate/inc/class.etemplate_widget_nextmatch.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/etemplate/inc/class.etemplate_widget_nextmatch.inc.php b/etemplate/inc/class.etemplate_widget_nextmatch.inc.php index 29d7be5eea..b2a253ecf5 100644 --- a/etemplate/inc/class.etemplate_widget_nextmatch.inc.php +++ b/etemplate/inc/class.etemplate_widget_nextmatch.inc.php @@ -943,9 +943,12 @@ class etemplate_widget_nextmatch extends etemplate_widget $filters[substr($pref_name,strlen($pref_prefix))] = $pref; } } + // Get link for if there is no nextmatch - this is a fallback + $registry = egw_link::get_registry($app,'list'); + if(!$registry) $registry = egw_link::get_registry($app,'index'); foreach($filters as $name => $filter) { - $href = egw::link('/index.php', (array)egw_link::get_registry($app,'list') + array('favorite'=>$name),$app); + $href = egw::link('/index.php', (array)$registry + array('favorite'=>$name),$app); $html .= "