Merge pull request #4185 from samuelsov/CRM-15330
authorDave Greenberg <dave@civicrm.org>
Fri, 23 Jan 2015 21:09:41 +0000 (13:09 -0800)
committerDave Greenberg <dave@civicrm.org>
Fri, 23 Jan 2015 21:09:41 +0000 (13:09 -0800)
Remove specific handling of name field in getModuleUFGroup

1  2 
CRM/Core/BAO/UFGroup.php

index 8b5e16df8fae6f2adb280ca8050d384ceaeed51f,c44760af896e6612223c38f46dd7f0e591044f1f..87d264cf48891fbd9c2d4e15532d5c7f6716da01
@@@ -1715,13 -1666,9 +1715,9 @@@ AND    ( entity_id IS NULL OR entity_i
          continue;
        }
        foreach ($selectFields as $key => $field) {
 -        if($field == 'id') {
 +        if ($field == 'id') {
            continue;
          }
-         elseif ($field == 'name') {
-           $ufGroups[$dao->id][$field] = $dao->title;
-           continue;
-         }
          $ufGroups[$dao->id][$field] = $dao->$field;
        }
      }