Skip to content

Commit

Permalink
GP-43974 Fix membership display
Browse files Browse the repository at this point in the history
  • Loading branch information
mflandorfer committed Jul 17, 2024
1 parent 662ed48 commit 44dbbe8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CRM/Contract/FormUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 44dbbe8

Please sign in to comment.