The base argument handler supports the use of 'name_field' in an argument definition, mapping a known field like node title or user name to summary titles and breadcrumb trails automatically.

The views_handler_argument_string class, however, ignores that value and forces the value and name fields to be the same. It's not a terrible assumption for strings, but with the rise of machine names and other similar key/value pairs in Drupal, it ends up being an unfortunate oversight. The attached patch adds support for name_field to string args by restoring the call to the summary_name_field() function. It's been tested with and without glossary handling, the only feature that might collide with it.

Comments

dawehner’s picture

Version: 7.x-3.x-dev » 6.x-3.x-dev
StatusFileSize
new2.04 KB

Here is a patch fro 6.x-3.x, too.

merlinofchaos’s picture

Status: Needs review » Fixed

Committed to 6.x-3.x and 7.x-3.x

Status: Fixed » Closed (fixed)

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