Skip to content
Snippets Groups Projects
Commit 34408e08 authored by colemanw's avatar colemanw
Browse files

#5690 - Fix subtype filtering on contact summary custom field tabs

Fixes regression caused by bbb569a1
parent 408ed6ea
Branches
Tags
No related merge requests found
......@@ -422,6 +422,15 @@ class CRM_Contact_Page_View_Summary extends CRM_Contact_Page_View {
'extends' => $this->get('contactType'),
'style' => ['Tab', 'Tab with table'],
];
$subTypes = CRM_Utils_Array::explodePadded($this->get('contactSubtype'));
if ($subTypes) {
// Include groups for this subtype OR groups with no subtype
$subTypes[] = NULL;
$filters['extends_entity_column_value'] = $subTypes;
}
else {
$filters['extends_entity_column_value'] = NULL;
}
$activeGroups = CRM_Core_BAO_CustomGroup::getAll($filters, CRM_Core_Permission::VIEW);
foreach ($activeGroups as $group) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment