From 196046f66c1c3c283c3f442f3b40b4cbb5ed009b Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 23 May 2007 18:06:21 +0000 Subject: [PATCH] "fix to drastically reduce the memmory used by eTemplate sessions (accidently the whole eTemplate object was stored incl. db-object with all table definitions and the returned rows)" --- etemplate/inc/class.nextmatch_widget.inc.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/etemplate/inc/class.nextmatch_widget.inc.php b/etemplate/inc/class.nextmatch_widget.inc.php index bbcc9b99f6..faf1ba4297 100644 --- a/etemplate/inc/class.nextmatch_widget.inc.php +++ b/etemplate/inc/class.nextmatch_widget.inc.php @@ -178,9 +178,6 @@ $extension_data['old_value'] = $value = $nm_global['col_filter'][$this->last_part($name)]; return True; } - if (!$value['filter_onchange']) $value['filter_onchange'] = 'this.form.submit();'; - if (!$value['filter2_onchange']) $value['filter2_onchange'] = 'this.form.submit();'; - // presetting the selectboxes with their default values, to NOT loop, because post-process thinks they changed if (!isset($value['cat_id'])) $value['cat_id'] = ''; if (!isset($value['search'])) $value['search'] = ''; @@ -192,6 +189,12 @@ if (!is_string($value[$f])) $value[$f] = (string) $value[$f]; } } + // save values in persistent extension_data to be able use it in post_process + $extension_data += $value; + + if (!$value['filter_onchange']) $value['filter_onchange'] = 'this.form.submit();'; + if (!$value['filter2_onchange']) $value['filter2_onchange'] = 'this.form.submit();'; + list($app,$class,$method) = explode('.',$value['get_rows']); if ($app && $class) { @@ -401,9 +404,6 @@ $cell['type'] = 'template'; $cell['label'] = $cell['help'] = ''; - // save values in persistent extension_data to be able use it in post_process - $extension_data += $value; - foreach(array('sort','order','col_filter') as $n) // save them for the sortheader { $nm_global[$n] = $value[$n];