Greetings,

I have found an error in Workflow:state exposed filter functionality. When using Workflow:state filter with preset value everything is okay but when a user choses another value from Exposed Filter combobox and clicks Submit filter is not applied and views shows all values regarding their type.

Here is a proposed solution. I don't think this is the best one, just to help you to find the reason:
In workflow_views_tables() hook you use 'views_handler_operator_andor' handler for Workflow:state filter. This is why the following WHERE condition is generated:
(workflow_node.sid AND '4')

It must be (workflow_node.sid = '4') instead. I have changed 'views_handler_operator_andor' handler to 'views_handler_operator_eqneq' one and everything started to work fine. But this kiled ONE OF, NON OF features so I think you will find a better solution.

Thank you.

Comments

JacobSingh’s picture

Status: Active » Postponed (maintainer needs more info)

Does this solve your problem?

http://drupal.org/node/126069

ardas’s picture

Yes it is.
Will you apply this patch?

JacobSingh’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

Would if I could.