AccountProxy should not be serialized

Created on 20 February 2015, about 10 years ago
Updated 11 April 2024, 11 months ago

Problem/Motivation

Some forms desire to render the name of the currently logged in user (e.g., the comment form). If the form is stored in the cache, then the AccountProxy gets serialized. This currently does not seem to have any bad effects, but it does not make much sense to serialize the proxy either. Affected code typically looks like this:

$form['#theme'] = 'username';
$form['#account'] = $this->currentUser;

Proposed resolution

?

Remaining tasks

User interface changes

API changes

πŸ› Bug report
Status

Closed: outdated

Version

11.0 πŸ”₯

Component
User systemΒ  β†’

Last updated 1 day ago

Created by

πŸ‡¨πŸ‡­Switzerland znerol

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