If app is not found in get_rows, use the template

This commit is contained in:
Nathan Gray 2015-06-29 20:33:10 +00:00
parent dcc69abf9b
commit ed97ead93e

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'])