I am using the workflow View filter handler to expose the various states of a given workflow to users. Today, this filter displays all workflow names, even though I limited the filter values to a subset of the states that all belong to one workflow. What I really want is to select the workflow I'm working with in the filter settings, to make sure only its states appear in the drop-down (and no workflow names at all).

The attached patch achieves this, by showing an "extra form" in the filter settings that allows to optionally select the desired workflow. The filter values will then be limited to that workflow.

Thanks for your consideration.

CommentFileSizeAuthor
#1 workflow-views-filter-sid.patch1.46 KBinfojunkie

Comments

infojunkie’s picture

StatusFileSize
new1.46 KB

Misnamed the file. Here it is.

darrenphillips’s picture

Works great for me and is just what I needed. Thank you for posting this.

Quentin’s picture

Brilliant, works like a charm!

simon georges’s picture

Status: Active » Reviewed & tested by the community

Hi,

It seems this patch is (at least partially) included in the one in #658880: Add selection for 'creation' state and workflow type in "Workflow: current state " filter . Maybe we can merge the topics ?

By the way, changing the status, at it seems this patch works, as confirmed by several people.

Shadlington’s picture

I would also like to confirm that this works.
One caveat is that you must also limit the list of workflow states possible to exclude (creation).
Not a big deal, just a minor UI annoyance. Definitely still a huge improvement.

Encarte’s picture

subscribe

Bastlynn’s picture

Status: Reviewed & tested by the community » Closed (duplicate)

As noted this patch does seem to be included in the patch from #658880: Add selection for 'creation' state and workflow type in "Workflow: current state " filter in the patch. I've compared the two and it looks like the other will be the better of the two solutions. So I'm going to close this one as a duplicate of the other. The patch will be added shortly to the 6.x branch.