Details
-
Type: New Feature
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 3.0
-
Fix Version/s: 3.0
-
Component/s: Core CiviCRM
-
Labels:None
Description
Due to some major code clean up in 3.0, input format for following api's have changed. So we need to maintain backward compatibility for these api's.
1. api/v2/Contact.php
civicrm_contact_create( );
civicrm_contact_update( );
civicrm_contact_format_create( );
2. api/v2/Location.php
civicrm_location_add( );
civicrm_location_update( );
civicrm_location_get( );
- If input params contain 'version' = 3.0 then we should assume api's are formatted according to new format.
- If version is missing we should reformat according to old format.
Basically implement a wrapper function to format location related params based on version.