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

civicrm_activities_get_contact() returns "Invalid Data" error when no activities exist for contact

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.0.2
    • Fix Version/s: 3.2
    • Component/s: CiviCRM API
    • Labels:
      None

      Description

      civicrm_activities_get_contact() returns "Invalid Data" error when no activities exist for contact.

      The function hasn't failed, so it should not return an error. It should return an empty array of activities.

      $activity = array('contact_id' => $objectId);
      $ret = civicrm_activities_get_contact($activity);

        Attachments

          Activity

            People

            • Assignee:
              priya Priya Prajapati
              Reporter:
              glnielsen Glenn Nielsen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: