From be632a8a1f882cc66bc886b1fca750fb5f466261 Mon Sep 17 00:00:00 2001 From: Ujjwal Wahi Date: Wed, 9 Mar 2016 00:46:21 +0530 Subject: [PATCH] CRM-18187 - Bug fix for enable a disabled group ---------------------------------------- * CRM-18187: Can't enable a disabled group https://issues.civicrm.org/jira/browse/CRM-18187 --- CRM/Contact/BAO/Group.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contact/BAO/Group.php b/CRM/Contact/BAO/Group.php index c0d1f62929..ec663c404b 100644 --- a/CRM/Contact/BAO/Group.php +++ b/CRM/Contact/BAO/Group.php @@ -752,7 +752,7 @@ class CRM_Contact_BAO_Group extends CRM_Contact_DAO_Group { $group['DT_RowId'] = 'row_' . $value['id']; if (!$params['parentsOnly']) { foreach ($value['class'] as $id => $class) { - if ($class = 'crm-group-parent') { + if ($class == 'crm-group-parent') { unset($value['class'][$id]); } } -- 2.25.1