Exposed sort filters don't have the correct default values when they are used as a setting of a view pane.
I have the following scenario:
I have a view pane. I exposed a number of filter and sorting criteria as e settings of the pane. Whit the filter criteria I have no issues but the sorting settings are not prefilled with the previously selected option into the pane form.
I checked the views_plugin_exposed_form class which creates the form elements for the sort filtering and noticed that it does not populate the default values at all based on the input values. It always takes the default value and that's it.
Comment | File | Size | Author |
---|---|---|---|
#5 | views-exposed_sort_filters-2037211-5.patch | 1.36 KB | Andrew Answer |
|
Comments
Comment #1
boyan.borisov CreditAttribution: boyan.borisov commentedI modified the views_plugin_exposed_form class to populated the default values based on $this->view->exposed_input
Comment #2
boyan.borisov CreditAttribution: boyan.borisov commentedPlease, ignore the patch from comment #1. It overrides some other changes on dev which I missed.
I am providing the correct patch.
Comment #3
boyan.borisov CreditAttribution: boyan.borisov commentedAny comments?
Comment #4
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedThe 6 year old patch in #2 to views_plugin_exposed_form.inc does not apply to the latest views 7.x-3.x-dev and if still applicable needs reroll.
Comment #5
Andrew Answer CreditAttribution: Andrew Answer as a volunteer commentedPatch rerolled.