Field subject can be disabled

Created on 11 October 2024, about 1 month ago

Problem/Motivation

After disabling the field "subject", in the message creation page, we get a PHP warning:

Warning: Undefined array key "subject" in Drupal\private_message\Form\PrivateMessageForm->buildForm() (line 301 of modules/contrib/private_message/src/Form/PrivateMessageForm.php).

Steps to reproduce

  1. In the "Manage form display" page (admin/structure/private-message/private-message-thread/form-display), disable the field "Subject".
  2. Go to the "Create Private Message" page (private-message/create), you'll see the mentioned PHP warning.
๐Ÿ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

๐Ÿ‡ต๐Ÿ‡นPortugal dxvargas

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