Skip to content

Commit

Permalink
Merge pull request #528 from compucorp/ESESPRT-77-fix-membership-links
Browse files Browse the repository at this point in the history
ESESPRT-77: Show View Option For Memberships
  • Loading branch information
shahrukh-compuco authored Apr 3, 2024
2 parents 934e897 + c711b80 commit 26923e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion membershipextras.php
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,9 @@ function membershipextras_civicrm_links($op, $objectName, $objectId, &$links, &$
if (in_array($op, ['membership.tab.row', 'membership.selector.row']) && $objectName == 'Membership') {
$cancelAutorenewalActionName = ts('Cancel Auto-renewal');
$cancelAutoRenewActionIndex = array_search($cancelAutorenewalActionName, array_column($links, 'name'));
unset($links[$cancelAutoRenewActionIndex]);
if ($cancelAutoRenewActionIndex !== FALSE) {
unset($links[$cancelAutoRenewActionIndex]);
}
}
}

Expand Down

0 comments on commit 26923e5

Please sign in to comment.