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

This commit is contained in:
Klaus Leithoff 2010-04-12 07:23:21 +00:00
parent 15e379249f
commit 1ec94a70fe

View File

@ -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();