Skip to content
Snippets Groups Projects

10.5.x - Issue #2894747 Views hardcodes exposed filter block form ID's which breaks AJAX when the same form is shown multiple times on one page

Open 10.5.x - Issue #2894747 Views hardcodes exposed filter block form ID's which breaks AJAX when the same form is shown multiple times on one page
1 unresolved thread
Open Eric Volkernick requested to merge issue/drupal-2894747:2894747-10.5.x into 10.5.x
1 unresolved thread

Closes #2894747

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
578 $this->fail(new FormattableMarkup('The page @url contains no HTML IDs.', $args));
579 return;
580 }
581
582 $message = new FormattableMarkup('The page @url contains duplicate HTML IDs', $args);
583
584 $seen_ids = [];
585 foreach ($elements as $element) {
586 $id = $element->getAttribute('id');
587 if (isset($seen_ids[$id])) {
588 $this->fail($message);
589 return;
590 }
591 $seen_ids[$id] = TRUE;
592 }
593 $this->assertTrue(TRUE, $message);
  • Wannes De Roy added 1 commit

    added 1 commit

    • 55672ff2 - Fix unit test for exposed form duplicate ids

    Compare with previous version

  • Wannes De Roy added 1 commit

    added 1 commit

    Compare with previous version

  • Wannes De Roy added 1 commit

    added 1 commit

    • 4f06c75b - Remove translate function calls & fix typo

    Compare with previous version

  • Please register or sign in to reply
    Loading