Current version of exposed workflow state filter form shows workflow name even if states for that group are disabled (by Limited to Selected values Views option). Attached patch chnages this behaviour - empty workflow names will be removed. In case if only one non-empty workflow name, name will be removed and only state list will be present.

CommentFileSizeAuthor
filter.patch1.78 KBNickSI

Comments

casey’s picture

+1

Also I would like to have radio/checkboxes instead of a select list. Or at least the height of the select box (for multiple values) should be bigger.

liquidcms’s picture

Version: 6.x-1.1 » 6.x-1.4
Category: feature » bug

bug still exists in 1.4 so changing version here; not sure about 1.5 or 2.x

also, for radios you could use Better Exposed Filters module but it has similar issues with workflow exposed filters, see: http://drupal.org/node/961316

not sure if use with BEF is there issue or still part of this bug in Workflow

going to try your patch

liquidcms’s picture

sweet.. your patch seems to work (applied to 1.4) for both the issue with std selected list exposed filter as well as when used with BEF module to create radio/checkboxes.

liquidcms’s picture

Version: 6.x-1.4 » 6.x-1.5
dawansv’s picture

Yes indeed this is still an issue in 1.5; code in patch works for me although I had to implement it manually...

johnv’s picture

Title: Better exposed filter form » Add option to "hide invalid states" in sed 'State' Views Filter form, hiding invalid states (D6)
Component: User interface » Views
Category: bug » feature

This patch removes invalid states, but it seems to duplicate code from elsewhere in the module.
Marking this explicitly as D6 in the title, since D7-version already only shows the invalid states.

johnv’s picture

Title: Add option to "hide invalid states" in sed 'State' Views Filter form, hiding invalid states (D6) » Add option "hide invalid states" in 'Workflow: state' Views Filter form
Issue summary: View changes
Status: Needs review » Closed (duplicate)

Please refer to #658880: Add selection for 'creation' state and workflow type in "Workflow: current state " filter which contains a D6-patch with filter for workflow and 'creation' state.
The D7-patch that was committed in that issue, contains the filter for "hide inactive and 'creation' states".