Fix up re-setting of the array in the OIK format
authorSeamus Lee <seamuslee001@gmail.com>
Tue, 21 Feb 2017 21:26:22 +0000 (08:26 +1100)
committerSeamus Lee <seamuslee001@gmail.com>
Tue, 21 Feb 2017 21:26:22 +0000 (08:26 +1100)
api/v3/Contact.php

index 7dacabf067dac711e60fb91c808fd721242d776a..2f41854d061b4f0257e6f3c4108a9a35d1d0cbff 100644 (file)
@@ -386,6 +386,7 @@ function _civicrm_api3_contact_get_supportanomalies(&$params, &$options) {
           $group = array_search($group, $allGroups);
         }
       }
+      $groups[key($groups)] = $groupsArray;
     }
     elseif (is_array($groups)) {
       foreach ($groups as $k => &$group) {