From b3c78f430903fda1e6c8fee7f1583e98ec07776a Mon Sep 17 00:00:00 2001 From: Justin Freeman Date: Wed, 5 May 2021 16:16:42 +1000 Subject: [PATCH] CIVICRM-1729 Set the smarty variables for mem_status and mem_join_date for back-end membership renewals --- CRM/Member/Form/MembershipRenewal.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CRM/Member/Form/MembershipRenewal.php b/CRM/Member/Form/MembershipRenewal.php index 850088b2f8..e233464f4b 100644 --- a/CRM/Member/Form/MembershipRenewal.php +++ b/CRM/Member/Form/MembershipRenewal.php @@ -677,6 +677,10 @@ class CRM_Member_Form_MembershipRenewal extends CRM_Member_Form { $membership->membership_type_id )); $this->assign('customValues', $customValues); + + $membership_status = CRM_Member_PseudoConstant::membershipStatus($membership->status_id, NULL, 'label'); + $this->assign('mem_status', $membership_status); + $this->assign('mem_join_date', CRM_Utils_Date::formatDateOnlyLong($membership->join_date)); $this->assign('mem_start_date', CRM_Utils_Date::formatDateOnlyLong($membership->start_date)); $this->assign('mem_end_date', CRM_Utils_Date::formatDateOnlyLong($membership->end_date)); if ($this->_mode) { -- 2.25.1