X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FOpenID.php;h=6066355e14ed487bab6f14ea0f13df7d64fbbfae;hb=a0827f986d6c393a9450df0a5937ee0d60f10da3;hp=de226c09b3f30bf053ae93d5f4bdeb8a92c6e1aa;hpb=a7e974f985f73948c0a4b6cfeefb66798ba91c0a;p=civicrm-core.git diff --git a/api/v3/OpenID.php b/api/v3/OpenID.php index de226c09b3..6066355e14 100644 --- a/api/v3/OpenID.php +++ b/api/v3/OpenID.php @@ -53,6 +53,10 @@ function civicrm_api3_open_i_d_create($params) { */ function _civicrm_api3_open_i_d_create_spec(&$params) { $params['contact_id']['api.required'] = 1; + $defaultLocation = CRM_Core_BAO_LocationType::getDefault(); + if ($defaultLocation) { + $params['location_type_id']['api.default'] = $defaultLocation->id; + } } /**