Thread entity stored 4 times in PrivateMessageForm

Created on 29 January 2024, 11 months ago

Problem/Motivation

We can get the thread entity in 4 different ways:
- $entity = $formState->get('pmt_entity');
- $private_message_thread = $formState->get('thread');
- $formState->set('private_message_thread', $private_message_thread);
- $this->entity

Proposed resolution

- refactored the code to have only one entity object inside PrivateMessageForm and its $formState.

πŸ“Œ Task
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine bohart Lutsk, Ukraine

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

Comments & Activities

  • Issue created by @bohart
  • First commit to issue fork.
Production build 0.71.5 2024