summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.txt1
-rw-r--r--modules/nodereference/nodereference.module4
-rw-r--r--modules/userreference/userreference.module4
3 files changed, 7 insertions, 2 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index 8d44d62..eb68e6b 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -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
============
diff --git a/modules/nodereference/nodereference.module b/modules/nodereference/nodereference.module
index a783f81..d120b40 100644
--- a/modules/nodereference/nodereference.module
+++ b/modules/nodereference/nodereference.module
@@ -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',
diff --git a/modules/userreference/userreference.module b/modules/userreference/userreference.module
index 9b5be49..c19d51a 100644
--- a/modules/userreference/userreference.module
+++ b/modules/userreference/userreference.module
@@ -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',