Use the account display name rather than the username

Created on 7 June 2021, over 3 years ago
Updated 16 October 2023, about 1 year ago

Problem/Motivation

$user->getAccountName() does not work well with anonymous users, $user->getDisplayName() would be a more user-friendly alternative.

Steps to reproduce

Apply a checklist through Drush where there's no authenticated user.

Proposed resolution

Replace references to $user->getAccountName() with $user->getDisplayName()

Remaining tasks

User interface changes

The checklist user's display name will be used rather than their username.

API changes

N/A

Data model changes

N/A

📌 Task
Status

Fixed

Version

2.1

Component

Code

Created by

Live updates comments and jobs are added and updated live.
  • Needs reroll

    The patch will have to be re-rolled with new suggestions/changes described in the comments in the issue.

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