From f1636d882a6f8387b9ed99c1c327c3ee54c5e710 Mon Sep 17 00:00:00 2001 From: jyyblue Date: Fri, 4 Sep 2020 07:48:09 -0700 Subject: [PATCH] fix issue on import --- src/Utils/Importer/ObjeRef.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Utils/Importer/ObjeRef.php b/src/Utils/Importer/ObjeRef.php index 6ec8d33..823a0c5 100644 --- a/src/Utils/Importer/ObjeRef.php +++ b/src/Utils/Importer/ObjeRef.php @@ -38,12 +38,7 @@ public static function read($conn,\PhpGedcom\Record\ObjeRef $objeref, $group='', $_group = 'objeref'; $_gid = $record->id; // store Note - $notes = $objeref->getNote(); - if($notes && count($notes) > 0) { - foreach($notes as $item) { - NoteRef::read($conn,$item, $_group, $_gid); - } - } + $files = $objeref->getFile(); if($files && count($files) > 0) { foreach($files as $item) {