Entity without route_provider causes error in renderCommentField

Created on 2 November 2023, about 1 year ago
Updated 12 August 2024, 4 months ago

Problem/Motivation

If entity doesn't have route_provider, error occurs in renderCommentField when $provider is not checked before usage.

Steps to reproduce

This can be reproduced for example with a webform and allowing submissions to have field as explained in https://drupal.stackexchange.com/a/308771. Then in webform submission page comment is added, the error occurs, $handler is null.

Proposed resolution

Check route_providers before usage.

Remaining tasks

Patch to be checked.

User interface changes

No.

API changes

No.

Data model changes

No.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇫🇮Finland MikaT

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