From 3c50efcc67fb471f7f9d58e008e7597588fa30bc Mon Sep 17 00:00:00 2001 From: Manuel Flandorfer Date: Wed, 17 Jul 2024 16:47:02 +0200 Subject: [PATCH] GP-43974 Fix membership display --- CRM/Contract/FormUtils.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Contract/FormUtils.php b/CRM/Contract/FormUtils.php index 82723d9c..84a530bc 100644 --- a/CRM/Contract/FormUtils.php +++ b/CRM/Contract/FormUtils.php @@ -47,7 +47,7 @@ public function replaceIdWithLabel($name, $entity) { if (isset($details[$result['custom_group_id']])) { $customGroupTableId = key($details[$result['custom_group_id']]); if (!empty($details[$result['custom_group_id']][$customGroupTableId]['fields'][$result['id']]['field_value'])) { - $entityId = $details[$result['custom_group_id']][$customGroupTableId]['fields'][$result['id']]['field_value']; + $entityId = $details[$result['custom_group_id']][$customGroupTableId]['fields'][$result['id']]['data']; if ($entity == 'ContributionRecur') { try { $entityResult = civicrm_api3($entity, 'getsingle', ['id' => $entityId]); @@ -87,7 +87,7 @@ public function setPaymentAmountCurrency() { ]); $details = $this->form->get_template_vars('viewCustomData'); $customGroupTableId = key($details[$result['custom_group_id']]); - $recContributionId = $details[$result['custom_group_id']][$customGroupTableId]['fields'][$result['id']]['field_value']; + $recContributionId = $details[$result['custom_group_id']][$customGroupTableId]['fields'][$result['id']]['data']; if (empty($recContributionId)) return;