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.
I've created an ajax view with a pager. It does not use the HS widget, and there is no HS widget on the page.
When I try to go to the next page, the request is successful and the response is valid, but it contains Drupal.HierarchicalSelect.ajaxViewPagerSettingsUpdate
as a callback. When the HS widget isn't on the screen, this script isn't loaded and this is a fatal error. In my case, the view doesn't get updated.
Comment | File | Size | Author |
---|---|---|---|
#2 | hs_ajax_views-911486-2.patch | 1019 bytes | Anonymous (not verified) |
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedThis bug was introduced in the fix for #626260: HS + Views + AJAX pager: HS's JS not running because HS uses Drupal.settings.
http://drupal.org/cvs?commit=412572
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedThis patch checks for that settings exist before adding the callback. I don't know if this is a suitable fix, but it gets me past this blocker for now.
Comment #3
hefox CreditAttribution: hefox commentedFixes my problem also, but not really using it so cannot tell further
Comment #4
benkewell CreditAttribution: benkewell commentedPatch in #2 fixed the issue on my website too.
I believe this patch should be committed to release as soon as possible as it makes all AJAX enabled views fail to load content.
Comment #5
Mr Richards CreditAttribution: Mr Richards commentedConfirming that #2 worked for me on version 1.194.
I have not learned how to install a patch yet, but in 'sites/all/modules/hierarchical_select/hierarchical_select.module' I added the If statement:
and it worked like a charm. Thanks for the help!
Comment #6
Wim LeersThanks, committed! :)
http://drupal.org/cvs?commit=424396
Comment #7
carsonblack CreditAttribution: carsonblack commentedI was experiencing the issue when I was using ajax in a view. It would fire the error Drupal.HierarchicalSelect javascript error when I would use an exposed filter or when sorting a table. The patch in #2 fixed this issue for me.
Comment #8
wjaspers CreditAttribution: wjaspers commentedStill doesn't totally resolve the issue. Maybe it fixes the "Views" error; but Panels still crashes.
Regardless if I try to use a Dropdown with the hierarchy in it, or if I try to use Hierarchical select, the panel starts processing and then burps up its ajax call.
Comment #9
hefox CreditAttribution: hefox commented(If something is still buggy, it's appropriate to re-open it).
Comment #10
Wim LeersClosing because nobody seems to confirming this issue. Hence I assume it was an isolated problem.
Comment #11
gunzip CreditAttribution: gunzip commentedsame here. hs 6.x-3.6 + views exposed filter (hs taxonomy filter) + ajax pager + panel does not work after changing page.
it looks like it does not re-attach behaviours. to reproduce
1. put a view in a panel
2. activate ajax pager
3. set up an exposed filter that uses hs (ie. taxonomy with depth > 1)
4. visit the panel and go to page 2
5. try to use hs in the filter again
Comment #12
kenorb CreditAttribution: kenorb commentedComment #13
stefan.r CreditAttribution: stefan.r commented