CRM-13179 per Dave's comment I agree that this is a bogus error. Removing this check...
authoreileen <eileen@fuzion.co.nz>
Sun, 18 Aug 2013 04:57:20 +0000 (16:57 +1200)
committereileen <eileen@fuzion.co.nz>
Sun, 18 Aug 2013 04:57:20 +0000 (16:57 +1200)
api/v3/Profile.php

index 4393a1265788d1809835db6c35cc926213bc0fd8..305439aa425387e10a8e787f6a04764fe6e0c47f 100644 (file)
@@ -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,