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

Empty update of Activity assignee/target results into DB error

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Duplicate
    • Affects Version/s: 4.7.0
    • Fix Version/s: None
    • 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:
              jitendra.purohit Jitendra Purohit
              Reporter:
              jitendra.purohit Jitendra Purohit
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: