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 you have multiple instances of the same view's display the $accordion_id is the same for each one, so this is a problem, because settings properties are converted to arrays.
This problem was detected using exposed filters with ajax.
So if we change to the view's dom id, now will work :)
Here's a patch, to make that happen.
Cheers!
Comment | File | Size | Author |
---|---|---|---|
#1 | views_accordion-dom_id_to-2095015-1.patch | 982 bytes | sebas5384 |
Comments
Comment #1
sebas5384 CreditAttribution: sebas5384 commentedComment #2
Manuel Garcia CreditAttribution: Manuel Garcia commentedI see what you mean @sebas5384 many thanks for the patch.
I considered the dom_id but then did not use it because I'm not sure how this is generated, and if it will stay the same in time.
Also, I'm a bit reluctant to commit this patch, as I'm sure the css on already live sites would break (if they are using the old id to style things). Thoughts?
I'd like some input from people using the module see if this change would break stuf on their website.
Comment #3
kscheirerBased on #2.