X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FMailingGroup.php;h=5fe96dd2f2ef7b2a0c9a24cb0208c9b417f7491f;hb=5563fe43b44b754e6441841a5d92664470b20366;hp=a3302e98b3fc993e9725cc0745bbe5b177d5b2ec;hpb=52df19870805bf5a2bae2388a1f6c5a0309c2d92;p=civicrm-core.git diff --git a/api/v3/MailingGroup.php b/api/v3/MailingGroup.php index a3302e98b3..5fe96dd2f2 100644 --- a/api/v3/MailingGroup.php +++ b/api/v3/MailingGroup.php @@ -2,9 +2,9 @@ /* +--------------------------------------------------------------------+ - | CiviCRM version 4.4 | + | CiviCRM version 4.5 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2013 | + | Copyright CiviCRM LLC (c) 2004-2014 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -32,7 +32,7 @@ * * @package CiviCRM_APIv3 * @subpackage API_MailerGroup - * @copyright CiviCRM LLC (c) 2004-2013 + * @copyright CiviCRM LLC (c) 2004-2014 * $Id$ * */ @@ -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); }