From d4cab3e4773fb06c285f9154f3e180bcacfa5b87 Mon Sep 17 00:00:00 2001 From: yashodha Date: Thu, 10 Dec 2015 12:38:03 +0530 Subject: [PATCH] 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 --- CRM/Member/Form/MembershipStatus.php | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.25.1