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

API activity/create should retain existing source contact

    Details

    • Type: Patch
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.0.7
    • Fix Version/s: None
    • Component/s: CiviCRM API
    • Labels:
      None

      Description

      When using the activity/create API with an ID to update an existing activity, the original source contact should be retained. Currently, in all cases, the logged-in contact is set as the source, potentially overwriting the original source contact. This patch checks for an existing source and adds that to the params, only resetting the source contact if there's no existing activity id or (for whatever reason) if the activity has no source contact.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              andrewhunt Andrew Hunt
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: