Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When using AJAX and exposed filters you can end up with an empty result. In this case the following selector returns zero elements.
var last = $($items).filter(':last');
This causes an error and breaks javascript execution.
Comment | File | Size | Author |
---|---|---|---|
#1 | empty_result_causes-2514650-1.patch | 961 bytes | jiv_e |
Comments
Comment #1
jiv_e CreditAttribution: jiv_e as a volunteer commentedThis patch fixes it.
Comment #2
jiv_e CreditAttribution: jiv_e as a volunteer commentedFixed typo in title.
Comment #3
Daniel KorteWorks for me! Thanks!
Comment #4
Honza Pobořil CreditAttribution: Honza Pobořil as a volunteer commented7.x-1.x will receive no work. Migrate to 7.x-2.x.