Fatal error when modules are not installed where the local actions alterations are done

Created on 26 June 2024, 5 days ago
Updated 28 June 2024, 3 days ago

Problem/Motivation

When installing this module, and the modules (term, media, menu) where local actions alterations are done are not installed, the site throws an error.

TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in in_array() 

Steps to reproduce

  • Install a Drupal site without menu or term.
  • Install the module
  • See the error

Proposed resolution

Add some defensive checks around the local_actions alterations.

Remaining tasks

Create MR
Review MR

User interface changes

-

API changes

-

Data model changes

-

πŸ› Bug report
Status

Needs work

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium tim-diels Belgium πŸ‡§πŸ‡ͺ

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