CRM-18187 - Bug fix for enable a disabled group
authorUjjwal Wahi <w.ujjwal@gmail.com>
Tue, 8 Mar 2016 19:16:21 +0000 (00:46 +0530)
committerUjjwal Wahi <w.ujjwal@gmail.com>
Tue, 8 Mar 2016 19:16:21 +0000 (00:46 +0530)
----------------------------------------
* CRM-18187: Can't enable a disabled group
  https://issues.civicrm.org/jira/browse/CRM-18187

CRM/Contact/BAO/Group.php

index c0d1f629294600f9cafe2dc5d25d13c3c1fcd780..ec663c404b0a36e08728651113d37977d356587e 100644 (file)
@@ -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]);
           }
         }