Skip to content

Commit 1644f21

Browse files
Changes for genealogy application
1 parent c8d5e39 commit 1644f21

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Utils/GedcomParser.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ private function getPerson($individual)
9090
if ($givn == "") {
9191
$givn = $name;
9292
}
93-
$person = Person::create(compact('givn', 'surn', 'sex'));
93+
$person = Person::create(compact('name', 'givn', 'surn', 'sex'));
9494
$this->persons_id[$g_id] = $person->id;
9595

9696
if ($events !== null) {
@@ -120,13 +120,14 @@ private function getFamily($family)
120120
$g_id = $family->getId();
121121
$husb = $family->getHusb();
122122
$wife = $family->getWife();
123+
$description = NULL;
123124
$children = $family->getChil();
124125
$events = $family->getEven();
125126

126127
$husband_id = (isset($this->persons_id[$husb])) ? $this->persons_id[$husb] : 0;
127128
$wife_id = (isset($this->persons_id[$wife])) ? $this->persons_id[$wife] : 0;
128129

129-
$family = Family::create(compact('husband_id', 'wife_id'));
130+
$family = Family::create(compact('husband_id', 'wife_id', 'description'));
130131

131132
if ($children !== null) {
132133
foreach ($children as $child) {

0 commit comments

Comments
 (0)