From: Ujjwal Wahi Date: Tue, 8 Mar 2016 19:16:21 +0000 (+0530) Subject: CRM-18187 - Bug fix for enable a disabled group X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=be632a8a1f882cc66bc886b1fca750fb5f466261;p=civicrm-core.git 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 --- 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]); } }