"This value should be of the correct primitive type." error saving node

Created on 3 December 2024, 5 months ago

Problem/Motivation

I set up a date field to use the "Select list (no time)" widget and when I try to save the node the field gives this error:

This value should be of the correct primitive type.

This is the field specification in the form configuration:

  field_date_posted:
    type: datetime_datelist_no_time
    weight: 3
    region: content
    settings:
      date_order: MY
      time_type: none
      increment: '15'
      date_year_range: '1900:2050'
    third_party_settings:
      entity_form_field_label:
        new_label: ''
        rewrite_label: 0

Steps to reproduce

Set up a date field to use the "Select list (no time)" widget.
Save an entity form that includes the field.

Proposed resolution

Fix the bug ;-)

Remaining tasks

Work out the source of the problem. Fix it.

User interface changes

TBD

API changes

TBD

Data model changes

TBD

πŸ› Bug report
Status

Active

Version

1.0

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

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

Comments & Activities

Production build 0.71.5 2024