From: sunil Date: Tue, 13 Jan 2015 16:42:17 +0000 (+0530) Subject: CRM-15809 fixed location type check X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6ebea6ac5745472618250cf7cb574fb7b282f270;p=civicrm-core.git CRM-15809 fixed location type check --- diff --git a/api/v3/Profile.php b/api/v3/Profile.php index 23762b9d2a..8417fad60c 100644 --- a/api/v3/Profile.php +++ b/api/v3/Profile.php @@ -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'])) {