X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FMailingGroup.php;h=7bcf9d2aab6b3760390736507880e59b07d8541b;hb=589bccc8af454e329e012733403555449dbcc584;hp=a3302e98b3fc993e9725cc0745bbe5b177d5b2ec;hpb=9c2e4fb9824d9913d19a7f7e24ada6093a409461;p=civicrm-core.git diff --git a/api/v3/MailingGroup.php b/api/v3/MailingGroup.php index a3302e98b3..7bcf9d2aab 100644 --- a/api/v3/MailingGroup.php +++ b/api/v3/MailingGroup.php @@ -51,6 +51,7 @@ function civicrm_api3_mailing_group_event_unsubscribe($params) { /** * Handle a site-level unsubscribe event + * @deprecated * * @param array $params * @@ -96,6 +97,12 @@ function civicrm_api3_mailing_group_getfields($params) { $fields = $fields + $d->fields(); $d->free(); + // CRM-13830 - prevent the api wrapper from helping out with pseudoconstants + // Since these fields don't belong to this entity it will fail + foreach ($fields as &$field) { + unset($field['pseudoconstant']); + } + return civicrm_api3_create_success($fields); }