Problem/Motivation

With version 5.0.1 of the module and core 11.0.0-rc1 release and the following JavaScript error occurs in two different browsers too:

Screenshot

Steps to reproduce

  1. Install with Composer, enable with Drush
  2. Go to the module list page: /admin/modules
  3. Expected: all the existing modules are displayed on the list
  4. Experienced: the list is empty. Changing status of the three checkboxes have no effect at all.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

n. a.


Original issue summary

During the D11 upgrade of jquery_ui_autocomplete, I just needed another module that depends on it to test if it works. I've chosen module_filter as its 5.0.0 version is marked as D11-compatible. Required in Composer, installed, but when checking the /admin/modules listing page, no results showed up:

Screenshot

Disabling the module_filter module, the list is filterable again as before. I am also unsure about how this module is supposed to work as the core's default Claro theme already offers some Ajax-based filtering options.

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

Balu Ertl created an issue. See original summary.

smustgrave’s picture

Status: Active » Postponed (maintainer needs more info)
StatusFileSize
new297.19 KB

If installed correctly this is what you should see
test

smustgrave’s picture

Status: Postponed (maintainer needs more info) » Closed (outdated)

Since there hasn't been a follow up going to close for now.

baluertl’s picture

Title: How this supposed to work on D11? » [JS] Uncaught TypeError: $rows.sort is not a function
Version: 5.0.0 » 5.0.1
Category: Support request » Bug report
Issue summary: View changes
Status: Closed (outdated) » Active
StatusFileSize
new106.42 KB

I admit I missed checking the JavaScript console when first encountered the issue and opened the ticket. Now rechecked again and experienced the same, so reopened this ticket and retitled to describe the situation in more detail.

Some “probably-irrelevant-but-who-knows-might-come-handy” backend information:

  • Web server: nginx/1.26.1
  • DB driver: 10.11.8-MariaDB-ubu2204-log
  • PHP version: 8.3.8
  • Memory limit: 1024M

clivelinsell made their first commit to this issue’s fork.

clivelinsell’s picture

`jQuery.sort` was removed in v4, and D11 is using that version. It just needs a slight tweak to sort an array instead.

This is the first time I've used the MR flow, so apologies if something's not right.

clivelinsell’s picture

Status: Active » Needs review
baluertl’s picture

Version: 5.0.1 » 5.x-dev
Status: Needs review » Reviewed & tested by the community
StatusFileSize
new38.11 KB
new16.13 KB

Hi @clivelinsell, thanks for the prompt solution. Now tested, commit d82cea90 eliminates the error message in the console and makes the list appear again indeed:

Screenshot

Regarding the merge request-based workflow: no worries, only one suggestion I would give. Usually better to create a separate branch for your suggested solution (eg. 123456-solution-approach-one). The Drupal․org GUI offers an input field pre-filled with a suggestion based on the ticket title. If it sounds weird as a branch name (sometimes it's not optimal) then you're able to rename it arbitrarily before creating the issue repo:

Screenshot

Leaving the issue repository's default branches intact has a key benefit. This way anyone else coming up with a different idea for solving the same issue, can still open another branch (eg. 123456-solution-approach-two) freshly stemming out from the original default branch (and open a separate merge request, of course). Finally, the project maintainers can decide which MR they agree with and get merged at the end.

smustgrave’s picture

Status: Reviewed & tested by the community » Fixed
uv516’s picture

StatusFileSize
new30.56 KB

Drupal 10.3.2:

I have the same errors: No modules is showing at all.
When I save Module filter settings (admin/config/user-interface/module-filter), the settings in the three fields disappear and I get the error shown in the attached image.

Status: Fixed » Closed (fixed)

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