lifetime & pricelifetime both have one function - to trigger the message in the touched tpl.
If either are set then effectively both are set. This consolidates them to 1, reducing notices
}
}
}
- $form->assign('ispricelifetime', $checklifetime);
+ $form->assign('hasExistingLifetimeMembership', $checklifetime);
}
/**
if ($membership["membership_type_id.duration_unit:name"] === 'lifetime') {
unset($radio[$memType['id']]);
unset($radioOptAttrs[$memType['id']]);
- $this->assign('islifetime', TRUE);
+ $this->assign('hasExistingLifetimeMembership', TRUE);
continue;
}
$this->assign('renewal_mode', TRUE);
</div>
{include file="CRM/common/cidzero.tpl"}
- {if $isShowMembershipBlock && ($islifetime or $ispricelifetime)}
+ {if $isShowMembershipBlock && $hasExistingLifetimeMembership}
<div class="help">{ts}You have a current Lifetime Membership which does not need to be renewed.{/ts}</div>
{/if}