Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Fixed/Completed
-
Affects Version/s: 3.1
-
Fix Version/s: 3.1
-
Component/s: Core CiviCRM
-
Labels:None
Description
Commenting out these lines in CRM_Contact_BAO_Contact::add fixes the test, so the cause is probably here:
//fix for validate contact sub type CRM-5143
$subType = CRM_Utils_Array::value('contact_sub_type', $params );
if ( $subType && (!CRM_Contact_BAO_ContactType::isExtendsContactType($subType, $params['contact_type'])) )