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

  1. Create a new field using the Core date range field type
  2. Set the form display to use the "Smart Date and time range" widget
  3. 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.

CommentFileSizeAuthor
Smart_date_primitive_type_error.png63.32 KBmegan_m

Comments

megan_m created an issue. See original summary.

megan_m’s picture

Issue summary: View changes

  • mandclu committed 4e542aa8 on 4.0.x
    Issue #3357726 by mandclu: Error when using Smart Date widget on core...
mandclu’s picture

Thanks 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.

mandclu’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.