Skip to content
Snippets Groups Projects
Unverified Commit 65dc7c19 authored by DaveD's avatar DaveD Committed by GitHub
Browse files

Merge pull request #29380 from civicrm/core-4984

(#4984) Display issue on membership view for relationships
parents c00cb225 32a15723
Branches
Tags
No related merge requests found
......@@ -251,8 +251,8 @@ END AS 'relType'
// split the relations in 2 arrays based on direction
$relTypeId = explode(CRM_Core_DAO::VALUE_SEPARATOR, $membershipType['relationship_type_id']);
$relDirection = explode(CRM_Core_DAO::VALUE_SEPARATOR, $membershipType['relationship_direction']);
foreach ($relTypeId as $rid) {
$relTypeDir[substr($relDirection[0], 0, 1)][] = $rid;
foreach ($relTypeId as $x => $rid) {
$relTypeDir[substr($relDirection[$x], 0, 1)][] = $rid;
}
// build query in 2 parts with a UNION if necessary
// _x and _y are replaced with _a and _b first, then vice-versa
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment