From: Ujjwal Wahi Date: Wed, 9 Mar 2016 12:04:13 +0000 (+0530) Subject: CRM-18194 - Bug fix for group type set to empty while updating Group X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=82d7eb3d92a6d21389ba103dfbd93beab7232dcc;p=civicrm-core.git 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 --- 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,