In the event of a note owner being removed, the note list can cause an error.

Created on 28 July 2021, over 3 years ago
Updated 18 August 2023, over 1 year ago

Problem/Motivation

In the event of a note owner being removed, the note list can cause an error.

Error: Call to a member function getDisplayName() on null in template_preprocess_moderation_note() (line 324 of /app/docroot/modules/contrib/moderation_note/moderation_note.module)

Steps to reproduce

Add a note from one author, then remove the author user from the CMS.

Proposed resolution

Add a more defensive if clause around the owner, this would be the same as the assignee logic.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom andy_w

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024