always check if result set has pseudo constants like state, country.. CRM-13794
authorkurund <kurund@civicrm.org>
Wed, 20 Nov 2013 19:50:29 +0000 (01:20 +0530)
committerkurund <kurund@civicrm.org>
Wed, 20 Nov 2013 19:50:29 +0000 (01:20 +0530)
----------------------------------------
* 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

index cc3514a5edd6be72ae12be935d9839314808e99d..4775882eba4aee13d0c372ebe53f3255af603fb1 100644 (file)
@@ -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;