From 15aea64e6548eabcd6eaf460a7a3b3effee3f654 Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Mon, 27 Jul 2015 23:42:28 +0530 Subject: [PATCH] --CRM-15187, Added warning message when membership type is changed --- CRM/Member/Form/Membership.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/CRM/Member/Form/Membership.php b/CRM/Member/Form/Membership.php index a771e5b5b1..d4d8b0e39f 100644 --- a/CRM/Member/Form/Membership.php +++ b/CRM/Member/Form/Membership.php @@ -1791,7 +1791,18 @@ class CRM_Member_Form_Membership extends CRM_Member_Form { } CRM_Core_Session::setStatus($statusMsg, ts('Complete'), 'success'); - + //CRM-15187 + // dusplay message when membership type is changed + if ($this->_id && !in_array($this->_memType, $this->_memTypeSelected)) { + CRM_Core_Session::setStatus( + ts('The financial types associated with the old and new membership types are different. You may want to edit the contribution associated with this membership to adjust its financial type.'), + ts('Warning') + ); + CRM_Core_Session::setStatus( + ts('The cost of the old and new membership types are different. You may want to edit the contribution associated with this membership to adjust its amount.'), + ts('Warning') + ); + } return $createdMemberships; } -- 2.25.1