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

Unit test api/v2/ActivityGetContact.test fails because of problem in CRM_Activity_BAO_Activity::getContactActivity()

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.2.0
    • Component/s: None
    • Labels:
      None

      Description

      Executed unit tests in r19529 from the repository. The Activity Get Contact test fails at line 60. This tests whether getting activities for a non-existent contact returns an error. The real problem is in CRM_Activity_BAO_Activity::getContactActivity() which executes a query without checking whether the contact ID is valid.

        Attachments

          Activity

            People

            • Assignee:
              dgg David Greenberg
              Reporter:
              dharmatech Dharmatech
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: