Quantcast
Viewing all articles
Browse latest Browse all 20145

Views filter hiccup with "Select" control type

Hello! I have built a normal view that queries documents from a database based on categories selected by users. It uses two taxonomies of documents. One refers to the type of document and is selected by users (value set by url parameter), the second refers to the type of project and is set by the page in which the view is inserted (value set by current page). I inserted this view in a view filter widget. Then inserted the widget in a page.
Everything seems to works fine: users get to select a category of document from a "select" control, and the view displays a list of documents in that category, related to the page (project) they're on.
The hiccup is, it only works after a second try or after a page reload: when landing on the project page and using the filter for the first time, the filter always returns ALL documents regardless of the category selected. Then, it works fine fine for a second selection and thereafter. One workaround I found is to replace the "select" control in the filter view by a "checkboxes" control. With checkboxes, the filter works out right immediately. However, the display is much less elegant than a select box.
Any suggestion to correct this weird behavior?
(using Views 1.2.1 with WP 3.5.1)

Viewing all articles
Browse latest Browse all 20145

Trending Articles