dev/core#4187 Fix errors when sorting by contributor name or receive date in the...
authorSeamus Lee <seamuslee001@gmail.com>
Thu, 16 Mar 2023 20:32:49 +0000 (07:32 +1100)
committerSeamus Lee <seamuslee001@gmail.com>
Thu, 16 Mar 2023 20:32:49 +0000 (07:32 +1100)
CRM/Contribute/BAO/ContributionSoft.php

index 2e0115bec9742f932e520f1481f1b515f451a254..8c7160f944b9b822c7b7097738d46465262a5fa2 100644 (file)
@@ -391,10 +391,10 @@ class CRM_Contribute_BAO_ContributionSoft extends CRM_Contribute_DAO_Contributio
     // This is necessary for dataTables sorting.
     $dataTableMapping = [
       'sct_label' => 'soft_credit_type_id:label',
-      'contributor_name' => 'contact.sort_name',
+      'contributor_name' => 'contact_id.sort_name',
       'financial_type' => 'contribution_id.financial_type_id:label',
       'contribution_status' => 'contribution_id.contribution_status_id:label',
-      'receive_date' => 'contribution.receive_date',
+      'receive_date' => 'contribution_id.receive_date',
       'pcp_title' => 'pcp_id.title',
       'amount' => 'amount',
     ];