From 4245bf70354c5bd4726c528e222a820142761b11 Mon Sep 17 00:00:00 2001 From: Michael McAndrew Date: Mon, 30 Aug 2021 16:26:05 +0100 Subject: [PATCH] activity import: prepend custom group title to custom fields --- CRM/Activity/Import/Parser/Activity.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CRM/Activity/Import/Parser/Activity.php b/CRM/Activity/Import/Parser/Activity.php index 1004eb54b3c5..a1d3cdfa8bd4 100644 --- a/CRM/Activity/Import/Parser/Activity.php +++ b/CRM/Activity/Import/Parser/Activity.php @@ -72,6 +72,9 @@ public function init() { $field['type'] = CRM_Utils_Array::value('type', $field, CRM_Utils_Type::T_INT); $field['dataPattern'] = CRM_Utils_Array::value('dataPattern', $field, '//'); $field['headerPattern'] = CRM_Utils_Array::value('headerPattern', $field, '//'); + if (!empty($field['custom_group_id'])) { + $field['title'] = $field["groupTitle"] . ' :: ' . $field["title"]; + } $this->addField($name, $field['title'], $field['type'], $field['headerPattern'], $field['dataPattern']); }