CRM-13179 add postal code to address fields on billing pseudoprofile
authoreileen <eileen@fuzion.co.nz>
Sun, 18 Aug 2013 05:18:28 +0000 (17:18 +1200)
committereileen <eileen@fuzion.co.nz>
Sun, 18 Aug 2013 05:18:28 +0000 (17:18 +1200)
api/v3/Profile.php

index 305439aa425387e10a8e787f6a04764fe6e0c47f..36e9e2fdfc1dc4d45e6114952666ceb95ea8a517 100644 (file)
@@ -344,7 +344,7 @@ function civicrm_api3_profile_getfields($params) {
  *  interim solution is just to return an empty array
  */
 function _civicrm_api3_profile_getbillingpseudoprofile(&$params) {
-  $addressFields = array('street_address', 'city', 'state_province_id', 'country_id');
+  $addressFields = array('street_address', 'city', 'state_province_id', 'country_id', 'postal_code');
   $locations = civicrm_api3('address', 'getoptions', array('field' => 'location_type_id'));
   $locationTypeID = array_search('Billing', $locations['values']);