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

Created on 16 February 2023, almost 2 years ago
Updated 17 February 2023, almost 2 years 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.71.5 2024