Problem/Motivation

I ran into an issue with a query on a single datetime picker (date range) field and noticed an issue where empty string values are saved to the database after emptying an existing field value (with "allow blank" option enabled).

This should instead be set to a NULL value, to be in line with core date fields' empty state.

Proposed resolution

I added a quick patch that sets empty values to NULL during the massage form values step.

Comments

Chewi3 created an issue. See original summary.

chewi3’s picture

idebr’s picture

Version: 2.0.0-beta1 » 2.x-dev
Status: Active » Needs review
Related issues: +#3220093: Optional End Date not compatible