From f329e1deb8ebc36b68b3fe4448b16fc6f5cf52bd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Frank=20J=2E=20G=C3=B3mez?= Date: Tue, 15 Jul 2014 11:38:14 -0400 Subject: [PATCH] Fix for CRM-14990: allow is_reserved field on CustomGroup to be set during create. --- CRM/Core/BAO/CustomGroup.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CRM/Core/BAO/CustomGroup.php b/CRM/Core/BAO/CustomGroup.php index ccc7225be6..33c05c199b 100644 --- a/CRM/Core/BAO/CustomGroup.php +++ b/CRM/Core/BAO/CustomGroup.php @@ -160,6 +160,14 @@ class CRM_Core_BAO_CustomGroup extends CRM_Core_DAO_CustomGroup { } } + $is_reserved = CRM_Utils_Array::value('is_reserved', $params, 0); + if (in_array($is_reserved, array(TRUE, 1, '1'), TRUE)) { + $is_reserved = 1; + } else { + $is_reserved = 0; + } + $group->is_reserved = $is_reserved; + // enclose the below in a transaction $transaction = new CRM_Core_Transaction(); -- 2.25.1