From 82d7eb3d92a6d21389ba103dfbd93beab7232dcc Mon Sep 17 00:00:00 2001 From: Ujjwal Wahi Date: Wed, 9 Mar 2016 17:34:13 +0530 Subject: [PATCH] CRM-18194 - Bug fix for group type set to empty while updating Group ---------------------------------------- * CRM-18194: Group Type is set to empty while updating Group https://issues.civicrm.org/jira/browse/CRM-18194 --- CRM/Contact/BAO/Group.php | 2 +- CRM/Group/Form/Edit.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Contact/BAO/Group.php b/CRM/Contact/BAO/Group.php index ec663c404b..afa89e2b6e 100644 --- a/CRM/Contact/BAO/Group.php +++ b/CRM/Contact/BAO/Group.php @@ -368,7 +368,7 @@ class CRM_Contact_BAO_Group extends CRM_Contact_DAO_Group { } } else { - $params['group_type'] = ''; + $params['group_type'] = NULL; } $session = CRM_Core_Session::singleton(); diff --git a/CRM/Group/Form/Edit.php b/CRM/Group/Form/Edit.php index 7def4f7ab9..ad97550ff8 100644 --- a/CRM/Group/Form/Edit.php +++ b/CRM/Group/Form/Edit.php @@ -384,6 +384,7 @@ WHERE title = %1 } $params['is_reserved'] = CRM_Utils_Array::value('is_reserved', $params, FALSE); + $params['group_type'] = CRM_Utils_Array::value('group_type', $params, array()); $customFields = CRM_Core_BAO_CustomField::getFields('Group'); $params['custom'] = CRM_Core_BAO_CustomField::postProcess($params, -- 2.25.1