Past Events are not shown after they have ended

Created on 15 May 2024, 6 months ago

Problem/Motivation

The following code does prevent to list the event in past events:

      case self::PAST_EVENTS:
        $this->query->addWhereExpression($this->options['group'], "
        (({$now} >= {$field_end}) AND ({$past_midnight} > {$field_end}))
        OR
        ({$field_end} IS NULL AND {$now} >= {$field})");
        break;

Proposed resolution

change the filter to:

      case self::PAST_EVENTS:
        $this->query->addWhereExpression($this->options['group'], "
        (({$now} >= {$field_end}))
        OR
        ({$field_end} IS NULL AND {$now} >= {$field})");
        break;
🐛 Bug report
Status

Active

Version

11.11

Component

Code (back-end)

Created by

🇬🇧United Kingdom globexplorer

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024