Some array items in form hooks don't exist and that causes warnings

Created on 16 February 2023, over 1 year ago
Updated 17 February 2023, over 1 year ago

Problem/Motivation

The 'actions' array item sometimes doesn't exist. And that causes PHP warning.

Example: "$element['subform']['field_module_lessons']['widget']['actions']['ief_add']['#value'];".

Proposed resolution

Always check the key for existence.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡§πŸ‡ΎBelarus beloglazov91

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024