From 36ae0094b118364332c1dbf1b12e7a7362326109 Mon Sep 17 00:00:00 2001 From: Joseph Lacey Date: Tue, 14 Jul 2015 14:14:08 -0400 Subject: [PATCH] CRM-16847 - Fix for addressee and greeting related contact export bug ---------------------------------------- * CRM-16847: Greeting and Address tokens not properly rendered when exporting related contacts from a contrbution search. https://issues.civicrm.org/jira/browse/CRM-16847 --- CRM/Export/BAO/Export.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/CRM/Export/BAO/Export.php b/CRM/Export/BAO/Export.php index 9a65047644..8ba00ee435 100644 --- a/CRM/Export/BAO/Export.php +++ b/CRM/Export/BAO/Export.php @@ -914,17 +914,17 @@ INSERT INTO {$componentTable} SELECT distinct gc.contact_id FROM civicrm_group_c elseif ($relationField == 'provider_id') { $fieldValue = CRM_Utils_Array::value($relationValue, $imProviders); } - } - // CRM-13995 - elseif (is_object($relDAO) && in_array($relationField, array( - 'email_greeting', - 'postal_greeting', - 'addressee', - )) - ) { - //special case for greeting replacement - $fldValue = "{$relationField}_display"; - $fieldValue = $relDAO->$fldValue; + // CRM-13995 + elseif (is_object($relDAO) && in_array($relationField, array( + 'email_greeting', + 'postal_greeting', + 'addressee', + )) + ) { + //special case for greeting replacement + $fldValue = "{$relationField}_display"; + $fieldValue = $relDAO->$fldValue; + } } elseif (is_object($relDAO) && $relationField == 'state_province') { $fieldValue = CRM_Core_PseudoConstant::stateProvince($relDAO->state_province_id); -- 2.25.1