Skip to content

Commit

Permalink
Merge pull request #21318 from michaelmcandrew/dev-core-2798
Browse files Browse the repository at this point in the history
activity import: prepend custom group title to custom fields
  • Loading branch information
eileenmcnaughton authored Sep 3, 2021
2 parents 7373a48 + 4245bf7 commit 3b943db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CRM/Activity/Import/Parser/Activity.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}

Expand Down

0 comments on commit 3b943db

Please sign in to comment.