From b27a1338939255a33c0bd998ab09c0b5220dfa30 Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Thu, 28 Jul 2016 18:39:56 +0530 Subject: [PATCH] minor fix --- CRM/Custom/Form/Group.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Custom/Form/Group.php b/CRM/Custom/Form/Group.php index b981bbaff7..bb6bd34da7 100644 --- a/CRM/Custom/Form/Group.php +++ b/CRM/Custom/Form/Group.php @@ -463,7 +463,7 @@ class CRM_Custom_Form_Group extends CRM_Core_Form { $subtypesToBeRemoved = array(); $subtypesToPreserve = $params['extends'][1]; // Don't remove any value if group is extended to -any- subtype - if (!empty(current($subtypesToPreserve))) { + if (!empty($subtypesToPreserve[0])) { $subtypesToBeRemoved = array_diff($this->_subtypes, array_intersect($this->_subtypes, $subtypesToPreserve)); } CRM_Contact_BAO_ContactType::deleteCustomRowsOfSubtype($this->_id, $subtypesToBeRemoved, $subtypesToPreserve); -- 2.25.1