This update has caused the AJAX calls to stop working when letters are clicked in glossary attachments. Previous to this update, clicking on an item in a glossary (in the default Glossary view) would result in an AJAX call so that the page reloads without a URL change. But, now the links act like normal links and take me to a new page, which is not what is expected. I have verified that this is the case in a base Drupal install with Views 7.x-3.23 against Views 7.x-3.22. It works fine in 7.x-3.22, but the AJAX calls are no longer working in 7.x-3.23.
EDIT: Upon further investigation, this problem is being caused by the update referenced by issue #1877446, "Fix Ajax pager in nested views." The problem is that attachments like the glossary are nested within the view, so this breaks the ajax call to nested attachments.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | views-glossary-ajax-not-working-3069508-8-D7.patch | 891 bytes | paramnida |
| #4 | views-glossary-ajax-not-working-3069508-4-D7.patch | 890 bytes | paramnida |
Comments
Comment #2
paramnida commentedComment #3
paramnida commentedComment #4
paramnida commentedHere is a patch that fixes the problem for me. Please test.
Comment #5
brankoc commentedComment #6
brankoc commentedI don't know how the glossary view is supposed to work, as I have never had a need to use it and I do not appear to be able to find a description of it within the module.
I am able to confirm, however, that in Views 7.x-3.22, the glossary view works different from the one in Views 7.x-3.23.
What presumably should happen (and does in 7.22):
/glossary.What happens in Views 7.x-3.23:
/glossary.glossary/X, where X is the letter you clicked on, and a table is shown which contains a list of all nodes of which the title starts with the letter you clicked on.Comment #7
brankoc commentedI can confirm that the patch fixes the problem as described.
I have two small issues with the coding style of the patch:
hasClass()method withfalseusing==, which is a truthy comparison. I believe that unless you are comparing truthy values, one should use===. The methodhasClass()returns a boolean value, so the patch should use===in my opinion.Comment #8
paramnida commentedThanks for the feedback BrankoC! I have re-rolled the patch with your suggestions.
Comment #9
brankoc commentedComment #10
brankoc commentedLooks good to me.
Comment #11
j_s commentedThe patch in #8 also works for me. Thanks!
Comment #12
aubjr_drupal commentedBelated, but the patch from comment #8 also worked across a couple of different sites for me.
Comment #13
damienmckennaCommitted. Thank you all.