Skip to content

Commit

Permalink
activity import: prepend custom group title to custom fields
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmcandrew committed Aug 30, 2021
1 parent 3753c95 commit 4245bf7
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 4245bf7

Please sign in to comment.