In the current D7 versions, the fields use the default 'numeric' filter assigned by Views' field_views_field_default_views_data() (nid / uid are numeric columns). Picking nodes and users by ids is not too friendly.

In CCK D6, noderef and userref fields used the 'many to one' filter handler, which provides checkboxes / selectbox to pick nodes and users.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

yched’s picture

Status: Active » Needs review
FileSize
5.86 KB

Attached patch alters the filter handler, like was done in D6.

- unlike in D6, no need to go through a dedicated handler class, the basic views_handler_filter_in_operator and its 'options callback' and 'options arguments' are good enough.
- comes with a bit of refactoring to avoid duplicate code between the existing node_reference_options_list() (hook from options.module) and the new node_reference_views_filter_options() callback.

yched’s picture

Granted - the best option would be to let Views filters re-use 'official' widgets - notably handy for exposed filters.

That's another issue, though (belongs to Views module), and is outside our current scope of "get on-par with D6 functionnality"

yched’s picture

Status: Needs review » Fixed
FileSize
5.68 KB

Rerolled after #962694: [release blocker] Make Node Reference Relationships Work in Views, and committed.

Patch attached for reference.

Status: Fixed » Closed (fixed)

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