Skip to content

Commit

Permalink
Merge pull request #16627 from seamuslee001/aug_custom_fields_fix
Browse files Browse the repository at this point in the history
[REF] Apply fix for CRM-607 for when building the select section of t…
  • Loading branch information
eileenmcnaughton authored Feb 27, 2020
2 parents 7b6fb49 + 494d81e commit 7592d3a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CRM/Core/BAO/CustomQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@ public function select() {
}

foreach (array_keys($this->_ids) as $id) {
// Ignore any custom field ids within the ids array that are not present in the fields array.
if (empty($this->_fields[$id])) {
continue;
}
$field = $this->_fields[$id];

if ($this->_contactSearch && $field['search_table'] === 'contact_a') {
Expand Down

0 comments on commit 7592d3a

Please sign in to comment.