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.

Issue fork anu_lms-3342395

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

beloglazov91 created an issue. See original summary.

beloglazov91’s picture

Assigned: beloglazov91 » Unassigned
Status: Active » Needs review
beloglazov91’s picture

Title: Check array items for existence » Some array items in form hooks don't exist and that causes warnings

spleshka’s picture

Status: Needs review » Fixed

Great job, thanks Alexey!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.