Skip to content
Snippets Groups Projects
Commit 60b8a054 authored by jaapjansma's avatar jaapjansma
Browse files

Fixes issue with Relationship output field handler.

parent 4607e646
No related branches found
Tags 1.23.4
No related merge requests found
# Version 1.38 (not yet released)
# Version 1.38
* Fixed #96: use INNER JOIN on custom fields when a filter is set.
* Fixed #96: use INNER JOIN on custom fields when a filter is set.
* Fixes issue with Relationship output field handler.
# Version 1.37.1
......
......@@ -234,8 +234,8 @@ class RelationshipsFieldOutputHandler extends AbstractFieldOutputHandler {
$relationshipTypes = [];
foreach ($relationshipTypeApi['values'] as $relationship_type) {
$relationshipTypes['a_b_' . $relationship_type['name_a_b']] = $relationship_type['label_a_b'];
$relationshipTypes['b_a_' . $relationship_type['name_b_a']] = $relationship_type['label_b_a'];
$relationshipTypes['a_b_' . $relationship_type['name_a_b']] = $relationship_type['label_a_b'] . ' ' . E::ts('(A - B)');
$relationshipTypes['b_a_' . $relationship_type['name_b_a']] = $relationship_type['label_b_a'] . ' ' . E::ts('(B - A)');
}
if (isset($field['configuration']) && isset($field['configuration']['relationship_types'])) {
foreach (array_reverse($field['configuration']['relationship_types']) as $rel_type) {
......
......@@ -14,8 +14,8 @@
<url desc="Documentation">https://lab.civicrm.org/extensions/dataprocessor/blob/master/README.md</url>
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls>
<releaseDate>2021-05-26</releaseDate>
<version>1.38-dev</version>
<releaseDate>2021-06-09</releaseDate>
<version>1.38</version>
<develStage>stable</develStage>
<compatibility>
<ver>5.20</ver>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment