CRM-15809 fixed location type check
authorsunil <esunil.pawar@gmail.com>
Tue, 13 Jan 2015 16:42:17 +0000 (22:12 +0530)
committersunil <esunil.pawar@gmail.com>
Tue, 13 Jan 2015 16:42:17 +0000 (22:12 +0530)
api/v3/Profile.php

index 23762b9d2a8c1a13ffc8e4c25d4535bc88a82973..8417fad60c46387b648e2ba4daf2d41bd7da9aa1 100644 (file)
@@ -404,7 +404,7 @@ function civicrm_api3_profile_apply($params) {
  */
 function _civicrm_api3_profile_getbillingpseudoprofile(&$params) {
 
-  $locations = civicrm_api3('address', 'getoptions', array('field' => 'location_type_id'));
+  $locations = civicrm_api3('address', 'getoptions', array('field' => 'location_type_id', 'context' => 'validate'));
   $locationTypeID = array_search('Billing', $locations['values']);
 
   if (empty($params['contact_id'])) {