Skip to content

Commit

Permalink
Merge pull request #37 from JoshKisb/main
Browse files Browse the repository at this point in the history
fix phon import
  • Loading branch information
curtisdelicata authored Jun 10, 2024
2 parents 4c42a6d + ee3b345 commit bf9d219
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Utils/Importer/Subm.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ public static function read($conn, $subm, $group = null, $gid = null, $obje_ids
$addr = $subm->getAddr() ?? null;
$addr_id = \FamilyTree365\LaravelGedcom\Utils\Importer\Addr::read($conn, $addr);
$_phon = $subm->getPhon() ?? []; // array
$_phon = array_map(function($phonObj) {
return $phonObj->getPhon();
}, $_phon);
$phon = implode(',', $_phon);
$_email = $subm->getEmail() ?? [];
$email = implode(',', $_email);
Expand Down

0 comments on commit bf9d219

Please sign in to comment.