Undefined array key "type"

Created on 26 January 2024, about 1 year ago
Updated 29 January 2024, about 1 year ago

Problem/Motivation

media_library_media_modify_form_media_form_alter() breaks when the form display contains components without a type option.
ErrorException: Warning: Undefined array key "type" in media_library_media_modify_form_media_form_alter() (line 216 of modules/contrib/media_library_media_modify/media_library_media_modify.module).

Proposed resolution

Check if component exists, before comparing it (see patch).

๐Ÿ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡นItaly szabocs pรกll

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