CRM Test Fix 4.5beta2
authorjitendrapurohit <jituraj7760@gmail.com>
Wed, 9 Jul 2014 06:04:37 +0000 (11:34 +0530)
committerjitendrapurohit <jituraj7760@gmail.com>
Wed, 9 Jul 2014 06:04:37 +0000 (11:34 +0530)
CRM/Activity/BAO/Activity.php

index 6187167cde2607e6fae3d5f56e889b464d944cb7..bb82e6eecd6f3f17f9fe64f5dbeb821cfcb4aa06 100644 (file)
@@ -1885,7 +1885,6 @@ SELECT  display_name
       ),
       'subject' => $subject,
       'activity_date_time' => $date,
-      'details' => $activity->details,
       'is_test' => $activity->is_test,
       'status_id' => CRM_Core_OptionGroup::getValue('activity_status',
         'Completed',
@@ -1903,6 +1902,10 @@ SELECT  display_name
       $activityParams['target_contact_id'][] = $activity->contact_id;
     }
 
+    // CRM-14945
+    if (property_exists($activity, 'details')) {
+      $activityParams['details'] = $activity->details;
+    }
     //CRM-4027
     if ($targetContactID) {
       $activityParams['target_contact_id'][] = $targetContactID;