From 49265be4e0db1fe7038357521b4450782836c2a8 Mon Sep 17 00:00:00 2001 From: eileen Date: Sat, 28 Jul 2018 16:29:16 +1200 Subject: [PATCH] Stdise references to BAO_Query->_fields [nfc] --- CRM/Export/BAO/Export.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CRM/Export/BAO/Export.php b/CRM/Export/BAO/Export.php index 3db3c72f98..6e9ff786c1 100644 --- a/CRM/Export/BAO/Export.php +++ b/CRM/Export/BAO/Export.php @@ -1433,8 +1433,8 @@ WHERE {$whereClause}"; elseif ($processor->isRelationshipTypeKey($field)) { foreach ($value as $relationField => $relationValue) { // below block is same as primary block (duplicate) - if (isset($relationQuery[$field]->_fields[$relationField]['title'])) { - if ($relationQuery[$field]->_fields[$relationField]['name'] == 'name') { + if (isset($queryFields[$relationField]['title'])) { + if ($queryFields[$relationField]['name'] == 'name') { $headerName = $field . '-' . $relationField; } else { @@ -1442,7 +1442,7 @@ WHERE {$whereClause}"; $headerName = $field . '-' . 'current_employer'; } else { - $headerName = $field . '-' . $relationQuery[$field]->_fields[$relationField]['name']; + $headerName = $field . '-' . $queryFields[$relationField]['name']; } } @@ -1471,7 +1471,7 @@ WHERE {$whereClause}"; foreach (array_keys($val) as $fld) { $type = explode('-', $fld); - $hdr = "{$ltype}-" . $relationQuery[$field]->_fields[$type[0]]['title']; + $hdr = "{$ltype}-" . $queryFields[$type[0]]['title']; if (!empty($type[1])) { if (CRM_Utils_Array::value(0, $type) == 'phone') { -- 2.25.1