mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-09 23:48:28 +01:00
"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)"
This commit is contained in:
parent
755261fe6a
commit
196046f66c
@ -178,9 +178,6 @@
|
|||||||
$extension_data['old_value'] = $value = $nm_global['col_filter'][$this->last_part($name)];
|
$extension_data['old_value'] = $value = $nm_global['col_filter'][$this->last_part($name)];
|
||||||
return True;
|
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
|
// 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['cat_id'])) $value['cat_id'] = '';
|
||||||
if (!isset($value['search'])) $value['search'] = '';
|
if (!isset($value['search'])) $value['search'] = '';
|
||||||
@ -192,6 +189,12 @@
|
|||||||
if (!is_string($value[$f])) $value[$f] = (string) $value[$f];
|
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']);
|
list($app,$class,$method) = explode('.',$value['get_rows']);
|
||||||
if ($app && $class)
|
if ($app && $class)
|
||||||
{
|
{
|
||||||
@ -401,9 +404,6 @@
|
|||||||
$cell['type'] = 'template';
|
$cell['type'] = 'template';
|
||||||
$cell['label'] = $cell['help'] = '';
|
$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
|
foreach(array('sort','order','col_filter') as $n) // save them for the sortheader
|
||||||
{
|
{
|
||||||
$nm_global[$n] = $value[$n];
|
$nm_global[$n] = $value[$n];
|
||||||
|
Loading…
Reference in New Issue
Block a user