Empty configuration dumping warnings into AJAX response

Created on 2 October 2024, 3 months ago

Problem/Motivation

When the config for this module has not been set, the following warning may be dumped into AJAX output if your Drupal site is configured to display warnings.

<br />
<b>Warning</b>:  Undefined array key "empty_text" in <b>/data/app/modules/contrib/empty_fields/src/Plugin/EmptyFields/EmptyFieldText.php</b> on line <b>38</b><br />

Steps to reproduce

  1. Install Empty Fields
  2. Set the Empty value behaviour field on an existing field

Proposed resolution

Use the PHP null coalescing operator to reduce the null config value to an empty string.

Remaining tasks

Patch the module.

User interface changes

None.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇦🇺Australia geoffreyr

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