Skip to content

Commit

Permalink
Issue #117: fix views relationship for addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
herbdool committed Mar 19, 2020
1 parent ce21c74 commit 81296c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/views/civicrm.views.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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) ||
Expand Down

0 comments on commit 81296c6

Please sign in to comment.