From e0e1397249565153c936361d71cbf8dd616e102f Mon Sep 17 00:00:00 2001 From: Dave Greenberg Date: Wed, 5 Aug 2015 17:24:41 -0700 Subject: [PATCH] CRM-15187 - Only show Change Membership Type warnings when action is UPDATE. ---------------------------------------- * CRM-15187: Accounting implications of Membership Type changes https://issues.civicrm.org/jira/browse/CRM-15187 --- CRM/Member/Form/Membership.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Member/Form/Membership.php b/CRM/Member/Form/Membership.php index f58e7dd9df..f9650ed859 100644 --- a/CRM/Member/Form/Membership.php +++ b/CRM/Member/Form/Membership.php @@ -1793,7 +1793,7 @@ 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)) { + if (($this->_action & CRM_Core_Action::UPDATE) && $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') -- 2.25.1