Add api alias for 'gender_id' as 'gender'
authorColeman Watts <coleman@civicrm.org>
Fri, 31 Jul 2015 17:20:00 +0000 (13:20 -0400)
committerColeman Watts <coleman@civicrm.org>
Fri, 31 Jul 2015 17:20:00 +0000 (13:20 -0400)
api/v3/Contact.php

index 1e7cfc23fca78621ab83a7e4a74dda0e39483316..eb6b5d73583d22ef82a026be99664ee3b95890fd 100644 (file)
@@ -131,6 +131,7 @@ function _civicrm_api3_contact_create_spec(&$params) {
   );
   $params['prefix_id']['api.aliases'] = array('individual_prefix', 'individual_prefix_id');
   $params['suffix_id']['api.aliases'] = array('individual_suffix', 'individual_suffix_id');
+  $params['gender_id']['api.aliases'] = array('gender');
 }
 
 /**