Skip to content

Commit

Permalink
fix phon import
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshKisb committed Jun 10, 2024
1 parent 6927ae1 commit ee3b345
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 ee3b345

Please sign in to comment.