From 3f6180affa71c1e8dca5545366022602257c23db Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Mon, 12 Apr 2010 07:23:37 +0000 Subject: [PATCH] set cat_app with value from get_row (, if not set) to ensure the cats of the template/listview in question are to be loaded --- etemplate/inc/class.nextmatch_widget.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/inc/class.nextmatch_widget.inc.php b/etemplate/inc/class.nextmatch_widget.inc.php index ba640fb36f..56bc7d4cc3 100644 --- a/etemplate/inc/class.nextmatch_widget.inc.php +++ b/etemplate/inc/class.nextmatch_widget.inc.php @@ -270,7 +270,7 @@ class nextmatch_widget if (!$value['filter_onchange']) $value['filter_onchange'] = 'this.form.submit();'; if (!$value['filter2_onchange']) $value['filter2_onchange'] = 'this.form.submit();'; - if (!isset($value['cat_app'])) $value['cat_app'] = $app; // if no cat_app set, use the app from the get_rows func + if (!isset($value['cat_app'])) list($value['cat_app']) = explode('.',$value['get_rows']); // if no cat_app set, use the app from the get_rows func if (!($max = (int)$GLOBALS['egw_info']['user']['preferences']['common']['maxmatchs'])) $max = 15; $row_options = array();