Skip to content

Commit

Permalink
Merge pull request #118 from herbdool/issue-117
Browse files Browse the repository at this point in the history
Issue #117 fix address relationship for Views
  • Loading branch information
seamuslee001 authored Mar 20, 2020
2 parents 5b9f7b9 + 909abba commit ba1603c
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 ba1603c

Please sign in to comment.