CRM-13966 - Fix export prefix, suffix, gender
authorColeman Watts <coleman@civicrm.org>
Mon, 10 Mar 2014 19:36:48 +0000 (15:36 -0400)
committerColeman Watts <coleman@civicrm.org>
Mon, 10 Mar 2014 19:36:48 +0000 (15:36 -0400)
CRM/Export/BAO/Export.php

index e0648cdd57604ddc538cf4c357dceb19cd958a96..3e50de066968bf2de27511fa120b00af7dcb823f 100644 (file)
@@ -821,9 +821,6 @@ INSERT INTO {$componentTable} SELECT distinct gc.contact_id FROM civicrm_group_c
           elseif ($field == 'pledge_next_pay_amount') {
             $row[$field] = $dao->pledge_next_pay_amount + $dao->pledge_outstanding_amount;
           }
-          elseif (in_array(substr($field, 0, -3), array('gender', 'prefix', 'suffix'))) {
-            $row[$field] = CRM_Core_PseudoConstant::getLabel('CRM_Contact_DAO_Contact', $field, $dao->$field);
-          }
           elseif (is_array($value) && $field == 'location') {
             // fix header for location type case
             foreach ($value as $ltype => $val) {