If app is not found in get_rows, use the template

This commit is contained in:
Nathan Gray 2015-06-29 20:39:32 +00:00
parent 59964e7788
commit 56c7c34c19

View File

@ -122,6 +122,10 @@ class etemplate_widget_nextmatch extends etemplate_widget
$send_value = $value;
list($app) = explode('.',$value['get_rows']);
if(!$GLOBALS['egw_info']['apps'][$app])
{
list($app) = explode('.',$this->attrs['template']);
}
// Check for a favorite in URL
if($_GET['favorite'] && $value['favorites'])