log entities don't display by default

Created on 20 August 2024, 3 months ago

Problem/Motivation

Something is incomplete or out of date with the display of log entities. The edit form appears fine but the View tab is empty.

Steps to reproduce

I went to https://simplytest.me and created a sandbox with Entity Log 8.x-1.4. (I tried the beta but the configuration screen failed with an error.) Configure anything to record changes and check the "log to entities" checkbox. Make some changes to the configured entities. Go to the log entities list and click on any of the log entities. From the Edit form, click on the View tab.

Proposed resolution

There are two template files. I am pretty sure that the correct file name is entity-log.html.twig. The preprocess function in entity_log.page.inc is looking for something that doesn't exist. But that function doesn't seem to be necessary in any case. I changed the variable in the twig file from 'content' to 'children' and I'm seeing what I expected now.

Remaining tasks

Update the relevant code and files to match the original intent for displaying a log entity.

πŸ› Bug report
Status

Active

Version

1.4

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States brad.bulger

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

Comments & Activities

Production build 0.71.5 2024