Select list values incorrectly truncated

Created on 27 April 2022, over 2 years ago
Updated 7 April 2023, over 1 year ago

Problem/Motivation

Steps to reproduce

When a default value was set as a comma delimited string in the drupal settings, observe that selected UI values in the node edit preview are incorrectly set because they are being truncated. This is because SHS normally operates on an array of integers rather than a string.

Additionally, if a constraint validator is operating on the edit form this can result in a validation message that doesn't make sense.

Proposed resolution

Modify code in OptionsShsWidget so that if a default value was set as a comma delimited string in the drupal settings it is converted into an array of integers and the value is set correctly.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

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