Skip to content

Commit

Permalink
Merge pull request #15746 from civicrm/5.19
Browse files Browse the repository at this point in the history
5.19
  • Loading branch information
eileenmcnaughton authored Nov 6, 2019
2 parents 33ff1fe + 0d47b92 commit fb217a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CRM/Utils/Migrate/Import.php
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ public function customFields(&$xml, &$idMap) {

foreach ($fields_indexed_by_group_id as $group_id => $fields) {
\Civi\Api4\CustomField::save()
->setCheckPermissions(FALSE)
->setDefaults(['custom_group_id' => $group_id])
->setRecords(json_decode(json_encode($fields), TRUE))
->execute();
Expand Down

0 comments on commit fb217a3

Please sign in to comment.