Fatal errors when used with Moderation Dashboard

Created on 22 September 2023, 9 months ago
Updated 6 December 2023, 7 months ago

Problem/Motivation

The Moderation Dashboard module is also part of Acquia CMS, and still useful in a headless context. When trying to access the moderation dashboard on a site with the Headless version of Acquia CMS installed, I get a number of fatal errors, all in the ViewJsonTask menu class. It seems to expect its entity property to be an object, but in the dashboard

Proposed resolution

It might be best if the getEntity method in this class could check that the parameter is an object before returning it, and if not convert it to one. I'm not sure how it could know what kind of entity to convert it to, however, so instead I'm adding checks so that the other methods don't cause fatal errors.

🐛 Bug report
Status

Fixed

Version

1.3

Component

Code

Created by

🇨🇦Canada mandclu

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

Comments & Activities

Production build 0.69.0 2024