mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
* ImportExport/Tracker: timeout left num-rows set to -1, causing nextmatch to try to display full list on next login
This commit is contained in:
parent
596a67e285
commit
4d95a9b495
@ -301,7 +301,7 @@ class nextmatch_widget
|
||||
$value['options-num_rows'] =& $row_options;
|
||||
|
||||
if (!isset($value['num_rows'])) $extension_data['num_rows'] = $value['num_rows'] = $max;
|
||||
if ($value['num_rows'] != $max)
|
||||
if ($value['num_rows'] != $max || $value['num_rows'] <= 0) // can be -1 if importexport crashes
|
||||
{
|
||||
$GLOBALS['egw_info']['user']['preferences']['common']['maxmatchs'] = $max = (int)$value['num_rows'];
|
||||
}
|
||||
@ -1431,7 +1431,6 @@ class nextmatch_widget
|
||||
if($value_in[self::CF_PREFIX.$name]['id'] != '' && $value_in[self::CF_PREFIX.$name]['id'] != $old_id) {
|
||||
$nm_global['filter'][self::CF_PREFIX.$name] = $value_in[self::CF_PREFIX.$name]['id'];
|
||||
}
|
||||
|
||||
}
|
||||
elseif ((string)$value_in[self::CF_PREFIX.$name] != (string)$extension_data['old_value'][self::CF_PREFIX.$name])
|
||||
{
|
||||
|
@ -298,6 +298,7 @@ class importexport_definitions_ui
|
||||
|
||||
@set_time_limit(0); // switch off the execution time limit, as it's for big selections to small
|
||||
$query['num_rows'] = -1; // all
|
||||
$query['csv_export'] = true; // so get_rows method _can_ produce different content or not store state in the session
|
||||
$this->get_rows($query,$rows,$readonlys);
|
||||
|
||||
$selected = array();
|
||||
|
Loading…
Reference in New Issue
Block a user