Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Duplicate
-
Affects Version/s: 4.6.16
-
Fix Version/s: 4.7.9
-
Component/s: Core CiviCRM
-
Labels:
-
Documentation Required?:None
-
Funding Source:Contributed Code
Description
civicrm/CRM/Core/BAO/CustomGroup.php now includes a check:
if ($entityType != 'Contact' && !in_array($entityType, $contactTypes['values']))
However, this checks against the labels of contact types, so if you've localised those, say from Organization to Organisation, you can no longer view any Organi[zs]ations!
I suggest instead the patch should have been:
if ($entityType != 'Contact' && !array_key_exists($entityType, $contactTypes['values']))
since then you're comparing the known machine name that no-one should alter.