From 5f15700b3fdafdb0c3c16aab43353ec7fcac9683 Mon Sep 17 00:00:00 2001 From: eileen Date: Sun, 18 Aug 2013 16:57:20 +1200 Subject: [PATCH] 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 --- api/v3/Profile.php | 4 ---- 1 file changed, 4 deletions(-) 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, -- 2.25.1