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.
Hi! When I use shs as exposed filter in Views, there's a strange behavior with "Use ajax" option. When I select my terms to 2-3 levels deeper and click "Filter" button, sometimes several extra dropdown lists appear after ajax refresh, all of them containing terms from the top level. It happens when I go for example from deeper level upside.
When I disable "Use ajax" option in my view, shs works nice.
Comments
Comment #1
stBorchertHi.
The main problem here is that the javascript settings for the fields are created twice if using AJAX in views. I'll see how to avoid this and commit a fix. Or - in case there is no fix for this - add a note to the project page and the README.txt to not use this option :/.
Comment #2
stBorchertThanks to the help of dawehner (maintainer of views) I could fix this.
We need to wrap the javascript settings for the dropdowns in a random hash until #208611: Add drupal_array_merge_deep() and drupal_array_merge_deep_array() to stop drupal_add_js() from adding settings twice is backported to Drupal 7.
Committed to 7.x-1.x so it will be included in the next development release (it is available through git right now).
Comment #3
stBorchertFixed in Version 7.x-1.5.
Comment #5
frank.schram CreditAttribution: frank.schram commentedHow was this fixed? I currently have 7.x-1.6+34-dev, but the issue still appears.