removed source contact field from the list of the available profile fields, CRM-13692
authorkurund <kurund@civicrm.org>
Sun, 3 Nov 2013 13:11:59 +0000 (18:41 +0530)
committerkurund <kurund@civicrm.org>
Sun, 3 Nov 2013 13:11:59 +0000 (18:41 +0530)
----------------------------------------
* CRM-13692: Unknown column 'civicrm_activity.source_contact_id' when using Batch Profile Update for Activities
  http://issues.civicrm.org/jira/browse/CRM-13692

CRM/Activity/BAO/Activity.php

index 1cdc61c98cf3740a39e02595505b2d6024d82fb1..910aa49696e96811d8a1f5b9c65eb03ed979efad 100644 (file)
@@ -2166,7 +2166,16 @@ AND cl.modified_id  = c.id
    */
   static function getProfileFields() {
     $exportableFields = self::exportableFields('Activity');
-    $skipFields = array('activity_id', 'activity_type', 'source_contact_id', 'activity_campaign', 'activity_is_test', 'is_current_revision', 'activity_is_deleted',);
+    $skipFields = array(
+      'activity_id',
+      'activity_type',
+      'source_contact_id',
+      'source_contact',
+      'activity_campaign',
+      'activity_is_test',
+      'is_current_revision',
+      'activity_is_deleted',
+    );
     $config = CRM_Core_Config::singleton();
     if (!in_array('CiviCampaign', $config->enableComponents)) {
       $skipFields[] = 'activity_engagement_level';