mirror of
https://github.com/werkraum-media/events.git
synced 2024-12-23 03:26:09 +01:00
!!!|Show all coming + running dates by default
Only coming dates were shown by default. Relates: #9505
This commit is contained in:
parent
bc6aa4d359
commit
30f030aab6
1 changed files with 4 additions and 1 deletions
|
@ -81,7 +81,10 @@ class DateRepository extends Repository
|
|||
|
||||
if ($demand->getStart() === null && $demand->getEnd() === null) {
|
||||
$now = new \DateTime('now', new \DateTimeZone('Europe/Berlin'));
|
||||
$constraints['untilnow'] = $query->greaterThanOrEqual('start', $now);
|
||||
$constraints['nowAndFuture'] = $query->logicalOr([
|
||||
$query->greaterThanOrEqual('start', $now),
|
||||
$query->greaterThanOrEqual('end', $now)
|
||||
]);
|
||||
}
|
||||
|
||||
if ($demand->getLimit() !== '') {
|
||||
|
|
Loading…
Reference in a new issue