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.


stBorchert’s picture

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 :/.

stBorchert’s picture

Status: Active » Needs review

Thanks 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).

stBorchert’s picture

Version: 7.x-1.4 » 7.x-1.5
Status: Needs review » Fixed

Fixed in Version 7.x-1.5.

Status: Fixed » Closed (fixed)

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

frank.schram’s picture

Issue summary: View changes

How was this fixed? I currently have 7.x-1.6+34-dev, but the issue still appears.