Removed users causes account name error

Created on 19 April 2024, 2 months ago
Updated 5 May 2024, about 2 months ago

Problem/Motivation

If a user is removed from a piece of content, the getAccountName() errors out since it is expecting a user.

Error: Call to a member function getAccountName() on null in gin_everywhere_form_alter() (line 99 of /mnt/www/html/njcourts/docroot/modules/contrib/gin_everywhere/gin_everywhere.module).

Steps to reproduce

Create a media entity (document for example) and cancel the user (select Delete the account and make its content belong to the Anonymous user. This action cannot be undone. Reassign its groups to the super administrator.). Go to the media content view page and try to edit the media entity. The error should appear.

Proposed resolution

Add a simple check if the user exists.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States j-barnes

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024