X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FOpenID.php;h=6066355e14ed487bab6f14ea0f13df7d64fbbfae;hb=3e46951c9b58ae37787351fb840bd396457b2d80;hp=da41b99d897a113fe3ac41dfa965ee07a9409947;hpb=caced8d5e51253a45b03655416a4b09bcb71f981;p=civicrm-core.git diff --git a/api/v3/OpenID.php b/api/v3/OpenID.php index da41b99d89..6066355e14 100644 --- a/api/v3/OpenID.php +++ b/api/v3/OpenID.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 5 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2017 | + | Copyright CiviCRM LLC (c) 2004-2019 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -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; + } } /**