mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
fix to jump back to the start, if search returns less items than acutal position is
This commit is contained in:
parent
f8e0994cfb
commit
74ffa874bd
@ -40,6 +40,11 @@
|
|||||||
if ($do_get_rows)
|
if ($do_get_rows)
|
||||||
{
|
{
|
||||||
$value['rows'] = ExecMethod($value['get_rows'],$value);
|
$value['rows'] = ExecMethod($value['get_rows'],$value);
|
||||||
|
if ($value['start'] > $value['rows'][0])
|
||||||
|
{
|
||||||
|
$value['start'] = 0;
|
||||||
|
$value['rows'] = ExecMethod($value['get_rows'],$value);
|
||||||
|
}
|
||||||
$GLOBALS['phpgw_info']['etemplate']['extension_data']['nextmatch_widget'][$cell['name']]['total'] = $value['rows'][0];
|
$GLOBALS['phpgw_info']['etemplate']['extension_data']['nextmatch_widget'][$cell['name']]['total'] = $value['rows'][0];
|
||||||
}
|
}
|
||||||
if ($cell['size'])
|
if ($cell['size'])
|
||||||
|
Loading…
Reference in New Issue
Block a user