Wrong before date condition

Created on 14 September 2021, about 3 years ago
Updated 19 January 2023, almost 2 years ago

Problem/Motivation

In DateCondition::evaluate(), the condition $value < $today means that the block will be displayed if today is after the date, which is not what we want.

Proposed resolution

The correct condition should be $today < $value (display if today is before the date).

💬 Support request
Status

Fixed

Version

1.1

Component

Code

Created by

🇫🇷France prudloff Lille

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024