Skip to content
Snippets Groups Projects
Commit adaefc17 authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] Fixing field for datefilter

parent f3b037af
No related branches found
No related tags found
1 merge request!3New version 4 1
......@@ -142,14 +142,13 @@ class MailRepository extends AbstractRepository {
$constraintsAnd[] = $query->logicalOr($constraintsOr);
$fromTime = strtotime($filters['filterFromDate']);
if ($fromTime) {
$constraintsAnd[] = $query->greaterThan('tstamp', $fromTime);
$constraintsAnd[] = $query->greaterThan('last_sending_time', $fromTime);
}
$toTime = strtotime($filters['filterToDate']);
if ($toTime) {
$constraintsAnd[] = $query->lessThan('tstamp', $toTime);
$constraintsAnd[] = $query->lessThan('last_sending_time', $toTime);
}
if ($filters['sent']) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment