From b61823df77440088a494603cc3926df45dce2dc2 Mon Sep 17 00:00:00 2001 From: Mathieu Lutfy Date: Tue, 19 Dec 2017 12:23:17 -0500 Subject: [PATCH] CRM-21431: Edit Group: fix removal of group types. --- CRM/Group/Form/Edit.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CRM/Group/Form/Edit.php b/CRM/Group/Form/Edit.php index 95c0df5cb0..55b9478a0e 100644 --- a/CRM/Group/Form/Edit.php +++ b/CRM/Group/Form/Edit.php @@ -378,6 +378,11 @@ WHERE title = %1 $params['group_organization'] = $this->_groupOrganizationID; } + // CRM-21431 If all group_type are unchecked, the change will not be saved otherwise. + if (!isset($params['group_type'])) { + $params['group_type'] = array(); + } + $params['is_reserved'] = CRM_Utils_Array::value('is_reserved', $params, FALSE); $params['custom'] = CRM_Core_BAO_CustomField::postProcess($params, -- 2.25.1