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

Created on 9 February 2023, over 1 year ago
Updated 22 January 2024, 5 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.69.0 2024