From: Pradeep Nayak Date: Mon, 27 Jul 2015 18:12:28 +0000 (+0530) Subject: --CRM-15187, Added warning message when membership type is changed X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=15aea64e6548eabcd6eaf460a7a3b3effee3f654;p=civicrm-core.git --CRM-15187, Added warning message when membership type is changed --- 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; }