Skip to content

Commit

Permalink
Merge pull request #108 from TheDMSGroup/quick-fix
Browse files Browse the repository at this point in the history
[Quick Fix] For search and inital date range for timeline
  • Loading branch information
heathdutton authored Jul 30, 2018
2 parents c5e9070 + 7a59c29 commit 308e15f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Event/ContactClientTimelineEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 308e15f

Please sign in to comment.