From 81296c6a88404a732fadfa85e720987fd5ac62c0 Mon Sep 17 00:00:00 2001 From: Herb vd Dool Date: Thu, 19 Mar 2020 15:30:57 -0400 Subject: [PATCH] Issue #117: fix views relationship for addresses --- modules/views/civicrm.views.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/views/civicrm.views.inc b/modules/views/civicrm.views.inc index bfa1aef..eceb6fb 100644 --- a/modules/views/civicrm.views.inc +++ b/modules/views/civicrm.views.inc @@ -201,7 +201,8 @@ function civicrm_views_url($path, $query, $absolute = FALSE) { * (optional) Array of fields not to add form the $fields table */ function civicrm_views_add_fields(&$fields, &$data, $tableName, &$skipFields = NULL) { - foreach ($fields as $name => $value) { + foreach ($fields as $value) { + $name = $value['name']; // Only add fields not in $data or $skipFields and has a ['title'] if (isset($value['custom_field_id']) || CRM_Utils_Array::value($name, $skipFields) ||