Error to create a thread: Warning: Undefined array key "target_id" in Drupal\private_message\Plugin\Field\FieldWidget\PrivateMessageThreadMemberWidget->massageFormValues()

Created on 8 April 2025, about 1 month ago

Problem/Motivation

I am trying to create a simple thread with an user and a php warning is returning, the thread is created, but without members

Error:

Warning: Undefined array key "target_id" in Drupal\private_message\Plugin\Field\FieldWidget\PrivateMessageThreadMemberWidget->massageFormValues() (line 196 of modules/contrib/private_message/src/Plugin/Field/FieldWidget/PrivateMessageThreadMemberWidget.php).

Steps to reproduce

Create a thread with one or more user, a warning is throwing and the thread is created without members.

Proposed resolution

Fix the return from: src/Plugin/Field/FieldWidget/PrivateMessageThreadMemberWidget.php:195

Remaining tasks

N/A

User interface changes

N/A

API changes

N/A

Data model changes

N/A

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇧🇷Brazil viniciusrp

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024