From 148c89c84e0b8ca772265132469ce3cf5a397ba9 Mon Sep 17 00:00:00 2001 From: yashodha Date: Tue, 18 Jun 2013 11:33:19 +0530 Subject: [PATCH] fix custom group error --- CRM/Custom/Form/Group.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Custom/Form/Group.php b/CRM/Custom/Form/Group.php index 8655f58e4c..162c0a272e 100644 --- a/CRM/Custom/Form/Group.php +++ b/CRM/Custom/Form/Group.php @@ -82,7 +82,7 @@ class CRM_Custom_Form_Group extends CRM_Core_Form { // current set id $this->_id = $this->get('id'); - if ($isReserved = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_CustomGroup', $this->_id, 'is_reserved', 'id')) { + if ($this->_id && $isReserved = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_CustomGroup', $this->_id, 'is_reserved', 'id')) { CRM_Core_Error::fatal("You cannot edit the settings of a reserved custom field-set."); } // setting title for html page @@ -528,7 +528,7 @@ class CRM_Custom_Form_Group extends CRM_Core_Form { /* * Function to return a formatted list of relationship name. * @param $list array array of relationship name. - * @static + * @static * return array array of relationship name. */ static function getFormattedList(&$list) { -- 2.25.1