From: eileen Date: Sun, 18 Aug 2013 04:57:20 +0000 (+1200) Subject: CRM-13179 per Dave's comment I agree that this is a bogus error. Removing this check... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5f15700b3fdafdb0c3c16aab43353ec7fcac9683;p=civicrm-core.git CRM-13179 per Dave's comment I agree that this is a bogus error. Removing this check means that on a mixed profile (e.g. event) the correct data for the relevant contact is returned which seems appropriate --- diff --git a/api/v3/Profile.php b/api/v3/Profile.php index 4393a12657..305439aa42 100644 --- a/api/v3/Profile.php +++ b/api/v3/Profile.php @@ -75,10 +75,6 @@ function civicrm_api3_profile_get($params) { $isContactActivityProfile = CRM_Core_BAO_UFField::checkContactActivityProfileType($profileID); - if (CRM_Core_BAO_UFField::checkProfileType($profileID) && !$isContactActivityProfile) { - throw new API_Exception('Can not retrieve values for profiles include fields for more than one record type.'); - } - $profileFields = CRM_Core_BAO_UFGroup::getFields($profileID, FALSE, NULL,