Check for iterable elements when rendering changed layer table

Created on 20 February 2024, 10 months ago

Problem/Motivation

When the "Old" and "New" elements in the diff section are not of the same type, the operations log refuses to render with an error like this:

NOTICE: PHP Message: PHP Fatal error: "@type" is an invalid render array key in web/core/lib/Drupal/Core/Render/Element.php on line 98

We should check in the twig template if the element to render is iterable or not.

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇪🇸Spain Juanjol Navarra

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