Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GP-43974 Fix membership display
Browse files Browse the repository at this point in the history
mflandorfer committed Jul 18, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 1cd2b65 commit 3c50efc
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
@@ -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;

0 comments on commit 3c50efc

Please sign in to comment.