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

Empty update of Activity assignee/target results into DB error

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7.0
    • Fix Version/s: 4.7.20
    • Component/s: None
    • Labels:
      None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code
    • Verified?:
      No

      Description

      Updating activity to clear assignee or target contacts lead to DB error.

      $updateParams = array(
        'id' => <activity_id>,
        'assignee_contact_id' => array(),
      );
      $activity = civicrm_api3('activity', 'create', $updateParams);
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jitendra.purohit Jitendra Purohit
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: