From b23943b8b8c0f1cf4b94c04c2e942bf1d99d7073 Mon Sep 17 00:00:00 2001 From: kurund Date: Thu, 21 Nov 2013 01:20:29 +0530 Subject: [PATCH] always check if result set has pseudo constants like state, country.. CRM-13794 ---------------------------------------- * CRM-13794: State/Country fields in Participant export not pulling data after upgrade http://issues.civicrm.org/jira/browse/CRM-13794 --- CRM/Export/BAO/Export.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/CRM/Export/BAO/Export.php b/CRM/Export/BAO/Export.php index cc3514a5ed..4775882eba 100644 --- a/CRM/Export/BAO/Export.php +++ b/CRM/Export/BAO/Export.php @@ -629,10 +629,8 @@ INSERT INTO {$componentTable} SELECT distinct gc.contact_id FROM civicrm_group_c $count++; $row = array(); - if ($exportMode == CRM_Export_Form_Select::CONTACT_EXPORT) { - //convert the pseudo constants - $query->convertToPseudoNames($dao); - } + //convert the pseudo constants + $query->convertToPseudoNames($dao); //first loop through returnproperties so that we return what is required, and in same order. $relationshipField = 0; -- 2.25.1