If you have 2 different fields with the same name (e.g. "status"), and you add both of them as exposed filters, the views2 UI is helpful and suggests "status_1" for the "Filter identifier" on the 2nd one to prevent collisions. However, if you don't know any better, and manually strip off the "_1", views doesn't validate that you've already got an exposed filter with that identifier. Furthermore, the help text says that the identifier "Cannot be blank", but it doesn't say it must be unique.
I don't have time to roll a patch now, and probably won't until after the d.o upgrade sprint, but if no one's fixed this by then, I'll try to work on it. ;)
Comments
Comment #1
dagmarThis is important for exposed sorts too. I'm changing the version of this issue beacuse is usefull for: #228510: Exposed Sorts
Exposed sorts may have the same name, like sort by status and filter by status. Right now, my patch for exposed sorts add a "sort_" before the id, but if an user remove it, we have again, duplicated ids.
Comment #2
dagmarSo, here is the patch.
We need to add a:
In expose_validate() function in #228510: Exposed Sorts when this issue is solved.
Comment #3
merlinofchaos commentedCommitted to 2.x and both 3.x branches.