From: yashodha Date: Thu, 10 Dec 2015 07:08:03 +0000 (+0530) Subject: CRM-17682: Membership status rule edit form won't save removal of 'admin only' attribute X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d4cab3e4773fb06c285f9154f3e180bcacfa5b87;p=civicrm-core.git CRM-17682: Membership status rule edit form won't save removal of 'admin only' attribute ---------------------------------------- * CRM-17682: Membership status rule edit form won't save removal of 'admin only' attribute https://issues.civicrm.org/jira/browse/CRM-17682 --- diff --git a/CRM/Member/Form/MembershipStatus.php b/CRM/Member/Form/MembershipStatus.php index f8dbeb24d3..45fbdab8fd 100644 --- a/CRM/Member/Form/MembershipStatus.php +++ b/CRM/Member/Form/MembershipStatus.php @@ -124,6 +124,10 @@ class CRM_Member_Form_MembershipStatus extends CRM_Member_Form_MembershipConfig $params = $ids = array(); // store the submitted values in an array $params = $this->exportValues(); + $params['is_active'] = CRM_Utils_Array::value('is_active', $params, FALSE); + $params['is_current_member'] = CRM_Utils_Array::value('is_current_member', $params, FALSE); + $params['is_admin'] = CRM_Utils_Array::value('is_admin', $params, FALSE); + $params['is_default'] = CRM_Utils_Array::value('is_default', $params, FALSE); if ($this->_action & CRM_Core_Action::UPDATE) { $ids['membershipStatus'] = $this->_id;