Warning: Undefined array key "#type"

Created on 12 June 2024, 16 days 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

Needs review

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.69.0 2024