mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +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
|
// set the search parameters
|
||||||
$search_params = Array
|
$search_params = Array
|
||||||
(
|
(
|
||||||
'offset' => 0,
|
'offset' => 0, // should be false if you want no restrictions on the number of results
|
||||||
'order' => 'cal_start ASC',
|
'order' => 'cal_start ASC',
|
||||||
'start' => $first,
|
'start' => $first,
|
||||||
'end' => $last,
|
'end' => $last,
|
||||||
@ -284,6 +284,10 @@ class module_calendar_month extends Module
|
|||||||
{
|
{
|
||||||
$search_params['num_rows'] = (int) $arguments['numEntries'];
|
$search_params['num_rows'] = (int) $arguments['numEntries'];
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$search_params['offset'] = false;
|
||||||
|
}
|
||||||
$rows = $this->bo->search($search_params);
|
$rows = $this->bo->search($search_params);
|
||||||
if ($arguments['showWeeks'])
|
if ($arguments['showWeeks'])
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user