View mode can be nullable for some entities

Created on 29 March 2024, 11 months ago
Updated 10 September 2024, 6 months ago

Problem/Motivation

In some cases entities doesn't have view mode, end we can get en error
TypeError: _eca_render_trigger_extra_field(): Argument #4 ($view_mode) must be of type string, null given, called in /var/www/html/web/modules/contrib/eca/modules/render/eca_render.module on line 299 in _eca_render_trigger_extra_field() (line 318 of modules/contrib/eca/modules/render/eca_render.module).

Proposed resolution

Need to change view_mode type param from string to null|string

πŸ“Œ Task
Status

Fixed

Version

2.1

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine r_cheh

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024