Open samuelsov opened 3 years ago
Data label don't match data. I suspect that it is only happening in translated instance.
In the example below, Contact ID is associated with a date field:
For now, the workaround I've found is to use the field names instead of the label but of course not ideal.
diff --git a/CRM/PivotData/DataMembership.php b/CRM/PivotData/DataMembership.php index e5ef564..fb0a4f2 100644 --- a/CRM/PivotData/DataMembership.php +++ b/CRM/PivotData/DataMembership.php @@ -131,6 +131,9 @@ class CRM_PivotData_DataMembership extends CRM_PivotData_AbstractData { } $result[$group . '.' . $key] = $value; + // [SV] quick hack to avoid problem with label being mixed up + $value['title'] = $value['name']; + if (is_array($value)) { $result[$group . '.' . $key]['optionValues'] = $this->getOptionValues($value); }
I suspect there is a ksort somewhere that mess the matching between labels and data.
Data label don't match data. I suspect that it is only happening in translated instance.
In the example below, Contact ID is associated with a date field:![Screenshot 2021-07-02 at 18-28-47 Membership Pivot Report ‹ Groupe BIM du Québec — WordPress](https://user-images.githubusercontent.com/372004/124333953-a582f380-db63-11eb-9e34-a2b505bc90fc.png)
For now, the workaround I've found is to use the field names instead of the label but of course not ideal.
I suspect there is a ksort somewhere that mess the matching between labels and data.