Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-4800

Add backward compatibilty for Contact and Location api's

    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.

        Attachments

          Activity

            People

            • Assignee:
              mover Michał Mach
              Reporter:
              kurund Kurund Jalmi
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: