Warning: Undefined array key "#type"

Created on 12 June 2024, 7 months ago
Updated 15 July 2024, 5 months ago

Problem/Motivation

The following warning appears when editing a node:

Warning: Undefined array key "#type" in /[..]/web/modules/contrib/domain/domain_source/domain_source.module on line 215

Steps to reproduce

The node is automatically created by the Node Singles module and doesn't have any domains assigned to it yet. The Domain Source, Domain Access and Send to all affiliates fields are shown in form display. The Domain Source and Domain Access fields are using the autocomplete field widget. This issue happened together with πŸ› Fatal error trying to display Domain Source field on node with no domain Needs review .

Proposed resolution

Improve the isset() check.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

- Domain Source

Created by

πŸ‡§πŸ‡ͺBelgium dieterholvoet Brussels

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