Skip to content

Commit

Permalink
Fixed campaign and mailing list report charts
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Croker committed Apr 17, 2020
1 parent 0fefeaf commit 08c4286
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

### Fixed
- Fixed a bug that prevented the first and last name fields being copied when importing a user group ([#134](https://github.com/putyourlightson/craft-campaign/issues/134)).
- Fixed a bug in the campaign and mailing list report charts ([#135](https://github.com/putyourlightson/craft-campaign/issues/135)).

## 1.15.0 - 2020-04-14
### Added
Expand Down
2 changes: 1 addition & 1 deletion src/services/ReportsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ private function _getChartData(string $recordClass, array $condition, array $int
$records = $recordClass::find()
->where($condition)
->andWhere(Db::parseDateParam(
$recordClass::tableName().'.dateCreated', $endDateTime, '<'
'dateCreated', $endDateTime, '<'
))
->orderBy(['dateCreated' => SORT_ASC])
->all();
Expand Down

0 comments on commit 08c4286

Please sign in to comment.