It is now possible to hide exposed filters in views_filters_selective if they have no value (because their options are limited by the result set). However if none of the filters show the apply button still shows. It should be hidden as well, since it has no purpose.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

snufkin’s picture

Status: Active » Needs review
FileSize
1.42 KB

Patch adds a count for all the exposed and vfs enabled filters, then at the end of the loop over the filters it checks if there are any left that don't have #access FALSE. If none left it sets access FALSE to the submit.

infojunkie’s picture

Status: Needs review » Fixed

Committed to latest dev. Please try it 12 hours from now and let me know if it works for you.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.