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

Created on 26 June 2024, 5 months ago
Updated 15 July 2024, 4 months 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

Fixed

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.71.5 2024