Skip to content

Commit

Permalink
Detect and handle bad data contact_sub_type = 0 in d7 source
Browse files Browse the repository at this point in the history
  • Loading branch information
stesi561 committed Nov 23, 2022
1 parent 3ef426b commit 5db7e68
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/EventSubscriber/WebformCivicrmMigrateSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,9 @@ public function migrateWebformElementCiviCRMContact(array $element,array $d7_for
}
}
}
if (empty($element['#contact_sub_type'])) {
unset($element['#contact_sub_type']);
}
return $element;
}

Expand Down

0 comments on commit 5db7e68

Please sign in to comment.