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.
Steps to reproduce:
- Clean install with 'Standard' profile.
- Enable Views-7.x-3.0-rc3 and its dependencies.
- Create a view with a page showing nodes of type 'Article'.
- Add the Tags field ('field_tags').
- Add a filter on the Tags field ('field_tags').
- Choose 'dropdown' and see what comes next...
Comments
Comment #1
mesr01 CreditAttribution: mesr01 commentedSome more info:
Adding the filter before adding the field makes it work correctly if the bug hasn't been triggered yet. Removing the field and the filter does not make the filter settings work again if the bug was triggered before, but saving the view does.
Comment #2
dawehnerWow i can reproduce that.
Just to summarize you see the settings form of the field, not the settings form of the filter.
Currently i can just guess that this problem is caused by the #ajax binding the event. Maybe this #ajax
behavior isn't detached correctly.
Comment #3
joachim CreditAttribution: joachim commented> Just to summarize you see the settings form of the field, not the settings form of the filter.
Yes, that's correct.
1. open the 'settings' for the filter. The modal dialog title is 'Configure extra settings for filter criterion Content: Manufacturer (field_ref_term_brand)'
2. Click on 'dropdown'.
3. It IMMEDIATELY is replaced with modal dialog 'Configure field: Content: Manufacturer'.
Hence I've been switched over to the config for the field handler on the same Field API field (and thus which presumably share an item in hook_view_data()).
Comment #4
joachim CreditAttribution: joachim commentedIf I remove the field handler and keep the filter then:
a) prior to saving the view, I get taken to an empty modal in step 3
b) after saving the view, things work correctly.
Comment #5
arkz CreditAttribution: arkz commentedI'm also encountering this bug. Some more details:
Comment #6
wxman CreditAttribution: wxman commentedJust adding mine as well. I had got to the point that I was just about to chuck my laptop out the window, then I found this thread. Mine is a filter to sort a group of writers names, with the filter being a drop down selecting the writing type. Every time I set it to drop down, it either went to a blank window, or just ignored the setting. After I read this thread I saved it, and now it works. This was for a content pane by the way.
Comment #7
Kristen PolMany thanks to @mesr01 and @joachim for explaining the workaround for this issue!!! Just to confirm:
1) I encountered the bug... tried different things... scratched head... found this issue report
2) Saved the view
3) Immediately click on the *filter* *settings* (before clicking anything else)
4) Choose "dropdown" (no weird behavior!)
5) Saved
Phew! I'm very happy there is a workaround for now until this is fixed :)
Comment #8
idcm CreditAttribution: idcm commentedThank you so much for the steps to get around this.
Comment #9
codemode01 CreditAttribution: codemode01 commentedHave had this issue for a while now and it's directly related to using taxonomy fields with the 'dropdown' option selected. Nice to find this thread and confirm it's not just me. The only option that I've found is to do what was described above...
Wondering whether it's Taxonomy, Views, or the last time that I upgraded core...
Comment #10
ericwenger CreditAttribution: ericwenger commentedThis issue continues - wonder what the problem is?
Comment #11
grossmann CreditAttribution: grossmann commentedSame problem here. Have to save the view first and can then change to "dropdown".
Maybe this is reintroduced in views 3.16? I am pretty sure this worked before.
Comment #12
grossmann CreditAttribution: grossmann commented