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

crm_update_location() deletes absent passed parameter values

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 1.5
    • Fix Version/s: 1.5
    • Labels:
      None

      Description

      The crm_update_location() API call deletes absent parameters for locations, requiring you to pass all email, phone, IM objects as well as any other relevant / required attributes. This is contrary to the documentation, which infers that only the parameters you pass will be updated, and the rest will be left as-is. Here is a patch I have dveloped for 5.1 against api/Location.php.

        Attachments

          Activity

            People

            • Assignee:
              rupam Rupam Jaiswal
              Reporter:
              crunchywelch Aaron Welch
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: