From 1a18ea39046dab28338479ea18c04587149dc42e Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Tue, 3 Sep 2019 13:33:47 -0400 Subject: [PATCH] Set contact communication_style_id as importable --- CRM/Contact/DAO/Contact.php | 4 +++- tests/phpunit/CRM/Dedupe/BAO/RuleGroupTest.php | 1 + xml/schema/Contact/Contact.xml | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CRM/Contact/DAO/Contact.php b/CRM/Contact/DAO/Contact.php index 5bc2b38a3b..f881d6844c 100644 --- a/CRM/Contact/DAO/Contact.php +++ b/CRM/Contact/DAO/Contact.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Contact/Contact.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:bd37bd31a0ac8ba4fd5f411fddef080b) + * (GenCodeChecksum:784d1da70e301866b556ced4c46b4ca9) */ /** @@ -963,7 +963,9 @@ class CRM_Contact_DAO_Contact extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Communication Style'), 'description' => ts('Communication style (e.g. formal vs. familiar) to use with this contact. FK to communication styles in civicrm_option_value.'), + 'import' => TRUE, 'where' => 'civicrm_contact.communication_style_id', + 'headerPattern' => '/style/i', 'export' => TRUE, 'table_name' => 'civicrm_contact', 'entity' => 'Contact', diff --git a/tests/phpunit/CRM/Dedupe/BAO/RuleGroupTest.php b/tests/phpunit/CRM/Dedupe/BAO/RuleGroupTest.php index 461e3b0f3e..9acefc7eea 100644 --- a/tests/phpunit/CRM/Dedupe/BAO/RuleGroupTest.php +++ b/tests/phpunit/CRM/Dedupe/BAO/RuleGroupTest.php @@ -68,6 +68,7 @@ class CRM_Dedupe_BAO_RuleGroupTest extends CiviUnitTestCase { 'sic_code' => 'Sic Code', 'user_unique_id' => 'Unique ID (OpenID)', 'sort_name' => 'Sort Name', + 'communication_style_id' => 'Communication Style', ], 'civicrm_email' => [ diff --git a/xml/schema/Contact/Contact.xml b/xml/schema/Contact/Contact.xml index 1539d0c6e8..c28b2f2874 100644 --- a/xml/schema/Contact/Contact.xml +++ b/xml/schema/Contact/Contact.xml @@ -496,6 +496,8 @@ communication_style true + true + /style/i Communication style (e.g. formal vs. familiar) to use with this contact. FK to communication styles in civicrm_option_value. 4.4 -- 2.25.1