From b725488f5fb846b74233bd7693f154dbe33f3c73 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sun, 1 Sep 2013 13:26:26 -0400 Subject: [PATCH] Fix return defaults CRM-13318 ---------------------------------------- * CRM-13318: Api doesn't return gender, prefix, suffix by default http://issues.civicrm.org/jira/browse/CRM-13318 --- CRM/Contact/BAO/Query.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/CRM/Contact/BAO/Query.php b/CRM/Contact/BAO/Query.php index 7beeddfe9c..cf36216c85 100644 --- a/CRM/Contact/BAO/Query.php +++ b/CRM/Contact/BAO/Query.php @@ -4012,10 +4012,10 @@ civicrm_relationship.start_date > {$today} 'first_name' => 1, 'middle_name' => 1, 'last_name' => 1, - 'individual_prefix' => 1, - 'individual_suffix' => 1, + 'prefix_id' => 1, + 'suffix_id' => 1, 'birth_date' => 1, - 'gender' => 1, + 'gender_id' => 1, 'street_address' => 1, 'supplemental_address_1' => 1, 'supplemental_address_2' => 1, @@ -4047,6 +4047,8 @@ civicrm_relationship.start_date > {$today} 'do_not_trade' => 1, 'is_opt_out' => 1, 'contact_is_deleted' => 1, + 'preferred_communication_method' => 1, + 'preferred_language' => 1, ); } } @@ -4104,7 +4106,7 @@ civicrm_relationship.start_date > {$today} * @param bool $count return count obnly * @param bool $skipPermissions Should permissions be ignored or should the logged in user's permissions be applied * - * @return void + * @return array * @access public */ static function apiQuery( -- 2.25.1