If you create a Workflow Field (in my case it was on an ECK entity) and then use views to create a Filter you do not see the whole list of workflow states, instead you are left with a single field where you have to type in the numerical ID of the workflow state.

Comments

johnv’s picture

Component: Views » Documentation
Category: Bug report » Support request
Status: Active » Closed (works as designed)

If you create a relationship to the needed workflowState, you can have selections on qny State property. This is the new Views behaviour since 3.3. Indeed, without this relationship, you are stuck with the text field.

rbrownell’s picture

@johnv Thanks for your help. For some reason when I create a View of ECK entities none of the workflow field (or any other fields) do not show up as an option in the relationship section. Perhaps this is a bug elsewhere in another module?

johnv’s picture

Status: Closed (works as designed) » Active
rbrownell’s picture

Yes, this is still an issue. I created a group filter with reference to the transition ID number and it does filter fine until you expose the filter and tell the view to remember the selection. When you return to the view it gives an Illegal Choice error (which is actually an unrelated views bug (#2292467: Exposed filters fire "An illegal choice has been detected. Please contact the site administrator." error). It would be nice however not to have to create a group filter.

johnv’s picture

There are several issues open when you create a view, and the base entity is not a Node.
The following contain patches:
#2318575: Workflow filter sql error in field_collection views
#2173853: Cannot create a View of workflow history log and comments

SandraVdv’s picture

I also have this issue. The issues mentioned in #5 don't seem to provide a fix for this?

#2318575: Workflow filter sql error in field_collection views: still joins with the workflow_node_history table which isn't used by custom entities...
#2173853: Cannot create a View of workflow history log and comments: also about nodes?

Anyone that can help us find a solution?

johnv’s picture

Component: Documentation » Views
johnv’s picture

Version: 7.x-2.4 » 7.x-2.5-beta1
Category: Support request » Feature request
Status: Active » Fixed
Related issues: +#2400211: Add Views support for non-node entity types

Views support for non-nodes was not implemented before. This is now fixed in #2400211: Add Views support for non-node entity types

Status: Fixed » Closed (fixed)

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