Problem/Motivation
Using the Smart Date and time range widget on a core Date range field returns an error and prevents the form from submitting.
Steps to reproduce
- Create a new field using the Core date range field type
- Set the form display to use the "Smart Date and time range" widget
- Attempt to enter some content with a date.
An error is returned:
This value should be of the correct primitive type.
Tested in both Drupal 9.5.8 and 10.0.8 with Smart Date 4.0.0. It does not happen with version 3.7.2.
| Comment | File | Size | Author |
|---|---|---|---|
| Smart_date_primitive_type_error.png | 63.32 KB | megan_m |
Comments
Comment #2
megan_m commentedComment #4
mandclu commentedThanks for catching this. I was able to reproduce and resolve this. Since it sounds like a fairly serious bug, I merged in the fix and will roll a new release.
Comment #5
mandclu commented