Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.6
-
Fix Version/s: 4.6
-
Component/s: None
-
Labels:None
-
Documentation Required?:None
Description
Steps to replicate:
1) Create a profile
2) Add any 'Contact' type field
3) Add any contact subtype field say 'Student'
4) Repeat step 2
It throws validation error "Cannot add or update profile field type "Contact" with combination of subtype other than "Contact"." which is wrong as 'Contact' is the parent of all contact types and its subtypes.
Thanks to the recent cleanup changes (here https://github.com/civicrm/civicrm-core/commit/a1a2a83db067ec5444f056ad3fa00e85fdc176ec#diff-1911d0c1a896701ba9aa044181f5972bR625) this issue got highlighted via webtests in 4.6
Failing webtests:
WebTest_Profile_MultiRecordProfileAddTest.testAddNewNonMultiProfile
WebTest_Profile_MultiRecordProfileAddTest.testNonSearchableMultiProfile
WebTest_Profile_MultiRecordProfileAddTest.testAdminAddNewProfile
WebTest_Profile_MultiRecordProfileAddTest.testUserAddNewProfile