Unable to select CSHS as a field widget for a base field

Created on 9 February 2023, almost 2 years ago
Updated 22 January 2024, 11 months ago

Problem/Motivation

When trying to select the CSHS widget for a base field I defined I receive this error
AssertionError: assert($field_storage instanceof FieldStorageConfigInterface) in assert() (line 196 of /app/web/modules/contrib/cshs/src/CshsOptionsFromHelper.php)

Steps to reproduce

Create a base field using BaseFieldDefinition then on the form display try to select the CSHS widget.

Proposed resolution

Check if $this->fieldDefinition is a BaseFieldDefinition before doing assertions.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

🇬🇧United Kingdom mjmorley

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

Comments & Activities

Production build 0.71.5 2024