}
$values = array();
$query = '
- SELECT cc.display_name as name, cc.sort_name as sort_name, cc.id, cr.relationship_type_id, crt.label_b_a as role, ce.email
+ SELECT cc.display_name as name, cc.sort_name as sort_name, cc.id, cr.relationship_type_id, crt.label_b_a as role, crt.name_b_a, ce.email
FROM civicrm_relationship cr
LEFT JOIN civicrm_relationship_type crt
ON crt.id = cr.relationship_type_id
'email' => $dao->email,
);
// Add more info about the role (creator, manager)
- $role = CRM_Utils_Array::value($details['role'], $caseRoles);
+ $role = CRM_Utils_Array::value($dao->name_b_a, $caseRoles);
if ($role) {
unset($role['name']);
$details += $role;