X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FProfile.php;h=1d6cfe80b95ade26f32ef7d56f5b398d807cfb45;hb=851aa40672c19c64d6a64cfcc6db776852c5f093;hp=6c25483f369b21468478bc8e21d9f688313fe71f;hpb=904a65bd20ed2506a43397f94a2606c606049932;p=civicrm-core.git diff --git a/api/v3/Profile.php b/api/v3/Profile.php index 6c25483f36..1d6cfe80b9 100644 --- a/api/v3/Profile.php +++ b/api/v3/Profile.php @@ -446,7 +446,7 @@ function _civicrm_api3_profile_getbillingpseudoprofile(&$params) { 'api.email.get.1' => ['location_type_id' => 'Billing'], 'api.email.get.2' => ['is_billing' => TRUE], 'return' => 'api.email.get, api.address.get, api.address.getoptions, country, state_province, email, first_name, last_name, middle_name, ' . implode($addressFields, ','), - ] + ] ); $values = [ @@ -611,10 +611,10 @@ function _civicrm_api3_buildprofile_submitfields($profileID, $optionsBehaviour = } /** * putting this on hold -this would cause the api to set the default - but could have unexpected behaviour - if (isset($result['values'][$realName]['default_value'])) { - //this would be the case for a custom field with a configured default - $profileFields[$profileID][$entityfield]['api.default'] = $result['values'][$realName]['default_value']; - } + * if (isset($result['values'][$realName]['default_value'])) { + * //this would be the case for a custom field with a configured default + * $profileFields[$profileID][$entityfield]['api.default'] = $result['values'][$realName]['default_value']; + * } */ } }