From e2cb881ce39d22d2169d3df551817872638ce92e Mon Sep 17 00:00:00 2001 From: Michael Devery Date: Mon, 26 Mar 2018 11:59:54 +0100 Subject: [PATCH] CRM-21853: Do not change 'is_multiple' unless included in the params Also remove use of CRM_Utils_Array call since we're sure it's set --- CRM/Core/BAO/CustomGroup.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Core/BAO/CustomGroup.php b/CRM/Core/BAO/CustomGroup.php index 1ec8b47144..21e4563142 100644 --- a/CRM/Core/BAO/CustomGroup.php +++ b/CRM/Core/BAO/CustomGroup.php @@ -128,8 +128,8 @@ class CRM_Core_BAO_CustomGroup extends CRM_Core_DAO_CustomGroup { $fields[] = 'is_public'; } foreach ($fields as $field) { - if (isset($params[$field]) || $field == 'is_multiple') { - $group->$field = CRM_Utils_Array::value($field, $params, FALSE); + if (isset($params[$field])) { + $group->$field = $params[$field]; } } $group->max_multiple = isset($params['is_multiple']) ? (isset($params['max_multiple']) && -- 2.25.1