CRM-19821 set activity_status_id to 'export'
authoreileen <emcnaughton@wikimedia.org>
Fri, 28 Apr 2017 03:10:21 +0000 (15:10 +1200)
committereileen <emcnaughton@wikimedia.org>
Fri, 28 Apr 2017 03:10:39 +0000 (15:10 +1200)
Export is a kind of weird & wonderful setting that is undocumented. It affects
whether fields are available by default in export & search, sometimes.

Generally I would say all 'user facing fields' should be set to export or somewhere
or other we will wind up hacking around it. I recently removed a lot
of code for payment_instrument_id that was just compensating for this var being
false rather than true.

CRM/Activity/DAO/Activity.php
xml/schema/Activity/Activity.xml

index 4160fbc8a02a64ab1455684bc530f57d806dd208..5b099160668d8b2114f13fb2ec34f6716a602359 100644 (file)
@@ -30,7 +30,7 @@
  *
  * Generated from xml/schema/CRM/Activity/Activity.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:60fe612216c0096685be3e555a4772c3)
+ * (GenCodeChecksum:a530f1fb1a27c5a15b5d138732b4c581)
  */
 require_once 'CRM/Core/DAO.php';
 require_once 'CRM/Utils/Type.php';
@@ -411,7 +411,7 @@ class CRM_Activity_DAO_Activity extends CRM_Core_DAO {
           'where' => 'civicrm_activity.status_id',
           'headerPattern' => '/(activity.)?status(.label$)?/i',
           'dataPattern' => '',
-          'export' => false,
+          'export' => true,
           'table_name' => 'civicrm_activity',
           'entity' => 'Activity',
           'bao' => 'CRM_Activity_BAO_Activity',
index 806642babcc0585d63d5dd4081619d93a668c110..5c5d013bcca78c1890b83fe5261e8f139831a4f6 100644 (file)
     <uniqueName>activity_status_id</uniqueName>
     <title>Activity Status</title>
     <import>true</import>
-    <export>false</export>
+    <export>true</export>
     <headerPattern>/(activity.)?status(.label$)?/i</headerPattern>
     <type>int unsigned</type>
     <comment>ID of the status this activity is currently in. Foreign key to civicrm_option_value.</comment>