From: Frank J. Gómez Date: Tue, 15 Jul 2014 15:38:14 +0000 (-0400) Subject: Fix for CRM-14990: allow is_reserved field on CustomGroup to be set during create. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f329e1deb8ebc36b68b3fe4448b16fc6f5cf52bd;p=civicrm-core.git Fix for CRM-14990: allow is_reserved field on CustomGroup to be set during create. --- 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();