Error saving null/empty value after 2.0.0-rc1 update

Created on 6 October 2021, about 3 years ago
Updated 12 April 2023, over 1 year ago

Problem/Motivation

When attempting to save content where a value is empty/null/no selection using the Simple hierarchical select form element, it gives this error and will not save an already existing node:

This value should be of the correct primitive type.

Steps to reproduce

On a node where there is a taxonomy that can be NULL/empty/no terms selected, try to save an already created node.

Drupal core 8.9.19.

When using a regular "select list" I can save the "None" value.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States thaddeusmt

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.71.5 2024