|
|
@@ -129,12 +129,12 @@ class GetNextViewHelper extends OtAbstractViewHelper {
|
|
|
try {
|
|
|
if ($fromChildren) {
|
|
|
// Network: Get the next events of the parent structures
|
|
|
- $events = $this->eventRepository->findChildrenByOrganizationId($organizationId, $fromDate, $toDate, $limit);
|
|
|
+ $events = $this->eventRepository->findChildrenByOrganizationId($organizationId, null, $toDate, $limit);
|
|
|
} else if ($fromParents) {
|
|
|
// Simple structure: Get the next events of the parent structures
|
|
|
- $events = $this->eventRepository->findParentsByOrganizationId($organizationId, $fromDate, $toDate, $limit);
|
|
|
+ $events = $this->eventRepository->findParentsByOrganizationId($organizationId, null, $toDate, $limit);
|
|
|
} else {
|
|
|
- $events = $this->eventRepository->findByOrganizationId($organizationId, $fromDate, $toDate, $limit);
|
|
|
+ $events = $this->eventRepository->findByOrganizationId($organizationId, null, $toDate, $limit);
|
|
|
}
|
|
|
} catch (ApiRequestException $e) {
|
|
|
OtLogger::error(sprintf('API Error: %s', $e->getMessage()));
|