Details
-
Type:
Bug
-
Status: Done/Fixed
-
Priority:
Blocker
-
Resolution: Fixed/Completed
-
Affects Version/s: 2.0
-
Fix Version/s: 2.1
-
Component/s: Core CiviCRM
-
Labels:None
Description
in api/v2/Activity.php:
function civicrm_activity_check_params looks for the following items in an activity api entry:
-id
-'activity_type_id' or 'activity_name'
-'status_id'
-'duration_minutes'
-'source_contact_id'
However, submitting an activity entry with just these fields leads to a CiviCRM error that there is 'Not enough data to create the activity object'. Looking at the simple test for the Activity API, the 'subject' field is also required by the CiviCRM core. Setting 'subject' in the $params array does create the activity entry properly.
I've attached a patch to Activity.php that will check the 'subject' field as part of civicrm_activity_check_params().