From: Seamus Lee Date: Thu, 16 Mar 2023 20:32:49 +0000 (+1100) Subject: dev/core#4187 Fix errors when sorting by contributor name or receive date in the... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=dc244b09f9a29733be585078be9dbcb0c69ec695;p=civicrm-core.git dev/core#4187 Fix errors when sorting by contributor name or receive date in the soft credit table --- diff --git a/CRM/Contribute/BAO/ContributionSoft.php b/CRM/Contribute/BAO/ContributionSoft.php index 2e0115bec9..8c7160f944 100644 --- a/CRM/Contribute/BAO/ContributionSoft.php +++ b/CRM/Contribute/BAO/ContributionSoft.php @@ -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', ];