minor bug found during execution of WebTest_Contact_AddTest::testHouseholdAdd test...
authorPratik Joshi <pratik.joshi@webaccess.co.in>
Mon, 1 Apr 2013 12:48:23 +0000 (18:18 +0530)
committerPratik Joshi <pratik.joshi@webaccess.co.in>
Mon, 1 Apr 2013 12:53:07 +0000 (18:23 +0530)
api/v3/Group.php

index 2328439294c8d5ed65d12501098b25df8af1c475..2dc1d426d2228371083d2a79013c3dad8030ee1d 100644 (file)
@@ -105,6 +105,7 @@ function civicrm_api3_group_get($params) {
   $inputParams      = CRM_Utils_Array::value('input_params', $options, array());
   if(is_array($returnProperties) && !empty($returnProperties)){
     // group function takes $returnProperties in non standard format & doesn't add id
+    unset($returnProperties['group_id']);
     $returnProperties['id'] = 1;
     $returnProperties = array_keys($returnProperties);
   }