Views hardcodes exposed filter block form ID's which breaks AJAX when the same form is shown multiple times on one page

Created on 14 July 2017, over 7 years ago
Updated 28 March 2023, about 2 years ago

Problem/Motivation

When an exposed filter is placed twice on the same page it gets the same html identifier. Every instance of this form needs a unique id.

Proposed resolution

Use Html::getUniqueId() to generate the ID.

Remaining tasks

Review

User interface changes

None

Release notes snippet

🐛 Bug report
Status

Needs work

Version

10.1

Component
Views 

Last updated about 2 hours ago

Created by

🇳🇱Netherlands mvwensen Breda

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Merge Requests

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