"core/drupal.checkbox" (misc/checkbox.js) has never loaded on user permission page

Created on 19 October 2021, about 3 years ago
Updated 22 January 2023, almost 2 years ago

Steps to reproduce and test

  1. Fresh Drupal install (with either Seven or Claro as admin theme)
  2. Disable JavaScript aggregation in "admin/config/development/performance", and clear cache.
  3. Go to "admin/people/permissions"
  4. Check the network tab -> misc/checkbox.js won't be loaded
  5. Confirm the above by ticking any unticked permission checkbox for the "Authenticated" role:
    • actual behavior: the respective checkboxes for the permissions for all other roles disappear, except for the Anonymous role
    • expected behavior: the respective checkboxes for the permissions should be ticked for all other roles, except Anonymous
  6. Apply the patch, clear cache and check the network tab again -> misc/checkbox.js should be loaded.
  7. Try clicking any unticked checkbox for the "Authenticated" role -> the respective checkboxes for the permissions should be ticked for all other roles, except Anonymous

In fact, we need to register the lib explicitly: (above reproduce steps isn't important)
https://git.drupalcode.org/project/drupal/-/blob/9.3.x/core/modules/user...

This change may improve/reduce the performance: πŸ› Improve performance of /admin/people/permissions Needs work

πŸ› Bug report
Status

Fixed

Version

9.5

Component
User moduleΒ  β†’

Last updated 7 days ago

Created by

πŸ‡­πŸ‡°Hong Kong droplet

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024