Affects Version/s: 1.4
Fix Version/s: None
Component/s: Technical infrastructure
The new crm_fetch_contact is documented to do the following:
crm_fetch_contact( $params, $return_properties = null )
Returns an array with the return property values for the contact. Note that the return value is not a contact object. $params can be any valid search parameter. See the search api's for more detailed documentation.
An error object is returned if there is no match, or more than one match.
- 'params' (array) Associative array of property name/value pairs to attempt to match on. Refer to the Data Model for available properties for each contact type.
- Array of values for the return properties list
This really is what it should do.
Instead, it's now returning a contact object (of type CRM_Contact_BAO_Contact).
Easiest way to verify this is in a debugger, which I've done.