Optional End Date not compatible

Created on 22 June 2021, about 3 years ago
Updated 22 July 2023, 11 months ago

Problem/Motivation

Same issue related here https://www.drupal.org/project/single_datetime/issues/2982299 โ†’ . Issue was closed in that ticket but never addressed.
Whether using optional end date module or using the feature added in drupal 9.3x dev ( https://www.drupal.org/project/drupal/issues/2794481 โœจ Allow end date to be optional Needs work ) the validation in validateSingleDateTime() does not allow you to submit the form when selecting a future start date and no end date.

Steps to reproduce

Set up daterange field and simple date range field display and have optional end date select (by either method above). Select a future start date and no end date and submit form. You will be prompted with the follow error:

'The @title end date cannot be before the start date'

Proposed resolution

Check if end date submitted is null or blank and skip this validation check.

Remaining tasks

Create/submit patch

๐Ÿ› Bug report
Status

Needs work

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States billdaff

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.

Production build 0.69.0 2024