projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94c1e8f
)
CRM-15809 fixed location type check
author
sunil
<esunil.pawar@gmail.com>
Tue, 13 Jan 2015 16:42:17 +0000
(22:12 +0530)
committer
sunil
<esunil.pawar@gmail.com>
Tue, 13 Jan 2015 16:42:17 +0000
(22:12 +0530)
api/v3/Profile.php
patch
|
blob
|
blame
|
history
diff --git
a/api/v3/Profile.php
b/api/v3/Profile.php
index 23762b9d2a8c1a13ffc8e4c25d4535bc88a82973..8417fad60c46387b648e2ba4daf2d41bd7da9aa1 100644
(file)
--- 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'])) {