#297322 Views integration: display node title / user name for argument summaries...
authorYves Chedemois
Fri, 24 Oct 2008 12:23:31 +0000 (12:23 +0000)
committerYves Chedemois
Fri, 24 Oct 2008 12:23:31 +0000 (12:23 +0000)
CHANGELOG.txt
modules/nodereference/nodereference.module
modules/userreference/userreference.module

index 8d44d62..eb68e6b 100644 (file)
@@ -32,6 +32,7 @@ CCK 6.2-dev
 - #324300 Views integration: fix sorting for multiple fields by allowing the sort to act on one specific delta.
 - Views integration: fix broken query for fields retrieved through relationships when relation is empty.
 - #325262 Fix flawed logic in filtering out empty values.
+- #297322 Views integration: display node title / user name for argument summaries with noderef / userref fields.
 
 CCK 6.2-rc10
 ============
index a783f81..d120b40 100644 (file)
@@ -150,7 +150,9 @@ function nodereference_field_settings($op, $field) {
 
       // Swap the filter handler to the 'in' operator.
       $data[$table_alias][$field['field_name'] .'_nid']['filter']['handler'] = 'content_handler_filter_many_to_one';
-
+      // Use node.title for summaries.
+      $data[$table_alias][$field['field_name'] .'_nid']['argument']['name table'] = 'node';
+      $data[$table_alias][$field['field_name'] .'_nid']['argument']['name field'] = 'title';
       // Add a relationship for related node.
       $data[$table_alias][$field['field_name'] .'_nid']['relationship'] = array(
         'base' => 'node',
index 9b5be49..c19d51a 100644 (file)
@@ -147,7 +147,9 @@ function userreference_field_settings($op, $field) {
 
       // Swap the filter handler to the 'in' operator.
       $data[$table_alias][$field['field_name'] .'_uid']['filter']['handler'] = 'content_handler_filter_many_to_one';
-
+      // Use users.name for summaries.
+      $data[$table_alias][$field['field_name'] .'_nid']['argument']['name table'] = 'node';
+      $data[$table_alias][$field['field_name'] .'_nid']['argument']['name field'] = 'title';
       // Add a relationship for related user.
       $data[$table_alias][$field['field_name'] .'_uid']['relationship'] = array(
         'base' => 'users',