mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
set offset to false if no num_rows is passed via argument, as 0 triggers the use of num rows, which defaults to the default max_rows
This commit is contained in:
parent
f5284a6324
commit
57542f5f74
@ -261,7 +261,7 @@ class module_calendar_month extends Module
|
||||
// set the search parameters
|
||||
$search_params = Array
|
||||
(
|
||||
'offset' => 0,
|
||||
'offset' => 0, // should be false if you want no restrictions on the number of results
|
||||
'order' => 'cal_start ASC',
|
||||
'start' => $first,
|
||||
'end' => $last,
|
||||
@ -284,6 +284,10 @@ class module_calendar_month extends Module
|
||||
{
|
||||
$search_params['num_rows'] = (int) $arguments['numEntries'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$search_params['offset'] = false;
|
||||
}
|
||||
$rows = $this->bo->search($search_params);
|
||||
if ($arguments['showWeeks'])
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user