diff --git a/Event/ContactClientTimelineEvent.php b/Event/ContactClientTimelineEvent.php index 9409616a..4e165d08 100644 --- a/Event/ContactClientTimelineEvent.php +++ b/Event/ContactClientTimelineEvent.php @@ -159,7 +159,7 @@ public function __construct( $this->forTimeline = $forTimeline; $this->siteDomain = $siteDomain; - if (!empty($filters['fromDate'])) { + if (!empty($filters['dateFrom'])) { $this->dateFrom = ($filters['dateFrom'] instanceof \DateTime) ? $filters['dateFrom'] : new \DateTime($filters['dateFrom']); @@ -478,9 +478,8 @@ public function getEventOrder() public function getQueryOptions() { return array_merge( + $this->filters, [ - 'options' => $this->filters, - 'logs' => isset($this->filters['logs']) ? $this->filters['logs'] : null, 'order' => $this->orderBy, 'paginated' => !$this->countOnly, 'unitCounts' => $this->countOnly && $this->groupUnit,