The reduce option in views_handler_filter_in_operator allows to reduce the options of the filters value form to the default options (user-selected in views admin) only.
For a normal situation (e.g. with views_page) this patch isn't necessary since the filter-form is only build once ($view->render_exposed_form()). When however the form is build twice using the same views object (what I want to do in my project: http://drupal.org/project/viewsforms) it reduces #options twice (second time using the posted input; so it reduces to the selected option only, not to the default options).
It really should use $this->options['value'] (user-selected default options) instead of $this->value (which is during execution rewritten to the posted input).
Comment | File | Size | Author |
---|---|---|---|
options-value-insteadof-value.patch | 973 bytes | casey | |
Comments
Comment #1
casey CreditAttribution: casey commentedComment #2
merlinofchaos CreditAttribution: merlinofchaos commentedOk, that makes sense. Committed!