From 568fcb227584878cb03a4cbb6e5a4b9b611e4d25 Mon Sep 17 00:00:00 2001 From: yashodha Date: Wed, 20 Jul 2016 17:46:50 +0530 Subject: [PATCH] CRM-18591: support for single value passed through api ---------------------------------------- * CRM-18591: group_type parameter ignored when using API to create group https://issues.civicrm.org/jira/browse/CRM-18591 --- CRM/Contact/BAO/Group.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CRM/Contact/BAO/Group.php b/CRM/Contact/BAO/Group.php index 58a68060ef..cf6483eba9 100644 --- a/CRM/Contact/BAO/Group.php +++ b/CRM/Contact/BAO/Group.php @@ -368,6 +368,9 @@ class CRM_Contact_BAO_Group extends CRM_Contact_DAO_Group { $params['group_type'] ) . CRM_Core_DAO::VALUE_SEPARATOR; } + else { + $params['group_type'] = CRM_Core_DAO::VALUE_SEPARATOR . $params['group_type'] . CRM_Core_DAO::VALUE_SEPARATOR; + } } else { $params['group_type'] = NULL; -- 2.25.1