If I use multiple (ajax) views on a single page and each view having exposed filters, e.g. for filtering taxonomy term ids, it doesn't work properly. It seems the exposed filters get confused to which view they have to respond to:
After using the filter of view B, the previously filtered result of view A gets resetted and the filter of view A doesn't react anymore.
Versions in use:
Views 7.x-3.0-beta3
ctools 7.x-1.0-alpha4
(BTW: @Earl and all supporters: Thanks so much for creating the godlike modules views, panels & ctools!!! Where would the Drupal community only be without you? Better not to think about it. :)
Comments
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedAre these completely separate views, or are they different displays on the same view?
Comment #2
simon_s CreditAttribution: simon_s commentedThese views are completely separate views and (exposed) filter on term ids of different taxonomy vocabularies and different content types.
It's the same problem if I include these views via block view displays and the core block system or with a Panels page. I also tried different display types like master, page or content pane. It doesn't matter for this problem.
Comment #3
simon_s CreditAttribution: simon_s commentedJust for interests I also tested it with multiple different ajax view displays from the SAME view on one panels page. Same problem: multiple exposed filters disturb each other. Also different ids for the "filter identifier" made no difference.
Comment #4
dawehnerThis really should work.
Can you please have a look at the output, there should be some css classes like "view-dom-id-$NUMBER".
How do they look there?
Comment #5
merlinofchaos CreditAttribution: merlinofchaos commentedQuick question? Do you have a views-view.tpl.php in the theme where these views are being rendered?
Comment #6
merlinofchaos CreditAttribution: merlinofchaos commentedI tried reproducing this, and cannot. My best guess is that this can happen due to improper views.tpl.php files not providing needed classes and ids, confusing the ajax system.
Comment #7
secoif CreditAttribution: secoif commentedDuplicate of http://drupal.org/node/1102362 and http://drupal.org/node/655002
Looks like there's a patch in http://drupal.org/node/655002
Comment #8
esmerel CreditAttribution: esmerel commentedComment #9
bluesband CreditAttribution: bluesband commentedi have a same problem. Subscribing.
Comment #10
vitokor CreditAttribution: vitokor commentedi am still having, the same problem. Subscribing.
Comment #11
cr0ss CreditAttribution: cr0ss commented@secoif issue is related to 7.x version of Views.
My investigations lead me to following issues:
1) This function Drupal.behaviors.ViewsAjaxView.attach is being executed couple of times during one Ajax call responce.
2) This code at 116 line of theme.inc:
is bug culprit on two views on one page with Ajax exposed filters (in my case Block and Page). It's messing the Drupal.settings.views.ajaxViews variable by replacing original objects with one view.
In case you'll try refresh page, then comment
And try to filter views - they will work properly.
3) In case two views are using same Taxonomy filter it's getting #edit-tid id for both exposed forms.