Currently the filters does not work because of not correct sql
SELECT node.nid AS nid, node.sticky AS node_sticky, node.created AS node_created FROM {node} node WHERE (( (node.promote <> 0 = :db_condition_placeholder_0) )
The current views_handler_filter_boolean_operator does not use value and operator for where(). it would be possible to do it,but
there has to be a way to add custom sql to where.
So i thought if there is no operator and no value added it should be used $query->where instead of $query->condition, here is a patch for it.
This does definitive needs review, i don't know how the where part is planned, what should be supported etc.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | filter.patch | 1 KB | dawehner |
| #3 | filter.patch | 998 bytes | dawehner |
| #2 | filter.patch | 932 bytes | dawehner |
| #1 | filter.patch | 932 bytes | dawehner |
| views-query-filter.patch | 740 bytes | dawehner |
Comments
Comment #1
dawehnerUpdated version
Comment #2
dawehnernext version
Comment #3
dawehneryet another version.
Comment #4
dawehnerEven better, i hope.
Comment #5
dawehnerFinally fixed with http://bazaar.launchpad.net/~d7cx/d7cx-views/DRUPAL-7--3/revision/220