Enabling preprocess JS breaks Permissions administration page (incorrect dependency)

Created on 18 February 2025, 2 months ago

Problem/Motivation

Enabling preprocessing of JavaScript breaks Permissions administration page on Drupal 10.4.2. Drupal 10.4.x relies on dependencies to include the aggregated files in the correct order (from my understanding), and so this module's JS gets included before the Drupal.behaviors.permissions.attach exists - which causes in error in fpa.js, breaking the loading of the page.

Steps to reproduce

  1. Enable module.
  2. Enable "Aggregate JavaScript files" under Configuration > Development > Performance and save.
  3. Go to People > Permissions and aside from the admin bar, the page is empty.

Proposed resolution

Update dependencies to properly wait for the loading of the correct library in order to override the Drupal.behaviors.permissions.attach function.

🐛 Bug report
Status

Active

Version

4.0

Component

Code

Created by

🇺🇸United States agbockus Illinois

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