From 6c0c4ac7de08d4afc70241b4ed929e50aee84f6b Mon Sep 17 00:00:00 2001 From: eileen Date: Sat, 30 Nov 2019 11:27:35 +1300 Subject: [PATCH] Add import & export metadata to activity.priority_id There is a lot of special handling for this field we can eliminate. Given no other tables have priority_id I'm not thinking to add the uniqueName & just add import & export to add it to metadata. I'll follow up with removals / fixes to support silliness --- CRM/Activity/DAO/Activity.php | 4 +++- xml/schema/Activity/Activity.xml | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CRM/Activity/DAO/Activity.php b/CRM/Activity/DAO/Activity.php index de5fe32f96..e787d04427 100644 --- a/CRM/Activity/DAO/Activity.php +++ b/CRM/Activity/DAO/Activity.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Activity/Activity.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:1d6842701f82cb5ee56916c7599b3b3d) + * (GenCodeChecksum:8bb645a4017aea0b392b1ff3f3050137) */ /** @@ -437,7 +437,9 @@ class CRM_Activity_DAO_Activity extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Priority'), 'description' => ts('ID of the priority given to this activity. Foreign key to civicrm_option_value.'), + 'import' => TRUE, 'where' => 'civicrm_activity.priority_id', + 'export' => TRUE, 'table_name' => 'civicrm_activity', 'entity' => 'Activity', 'bao' => 'CRM_Activity_BAO_Activity', diff --git a/xml/schema/Activity/Activity.xml b/xml/schema/Activity/Activity.xml index 8bb01cba9a..8b322d0953 100644 --- a/xml/schema/Activity/Activity.xml +++ b/xml/schema/Activity/Activity.xml @@ -262,6 +262,8 @@ priority_id int unsigned Priority + true + true ID of the priority given to this activity. Foreign key to civicrm_option_value. 2.0 -- 2.25.1