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

Activity API: crm_create_activity searches for unexistant php file to validate activity type

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 1.7
    • Fix Version/s: 1.8
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      Hello,

      The function "crm_create_activity" calls "_crm_check_activity_name( $activityName, 'CRM_Core_DAO_ActivityType' );", but CRM/Core/DAO/ActivityType.php does not exist, causing a PHP error.

      I think the following is what would be necessary:

      crm_check_activity_name( $activityName, 'CRM_Activity_DAO' . $activityName ); // first param becomes useless

      This bug also affects the update/delete API calls.

      Regards,
      Mathieu Lutfy

        Attachments

          Activity

            People

            • Assignee:
              kiran.jagtap Kiran Jagtap
              Reporter:
              mlutfy Mathieu Lutfy
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: