From 6ebea6ac5745472618250cf7cb574fb7b282f270 Mon Sep 17 00:00:00 2001 From: sunil Date: Tue, 13 Jan 2015 22:12:17 +0530 Subject: [PATCH] CRM-15809 fixed location type check --- api/v3/Profile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'])) { -- 2.25.1