Skip to content

Commit

Permalink
Fix call on wrong record type
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Dec 24, 2023
1 parent da762f8 commit 4c1e7eb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gedcom
Original file line number Diff line number Diff line change
Expand Up @@ -5653,11 +5653,12 @@ sub print_person
if(scalar(@phrases) == 0) {
$phrase->set($firstname // $pronoun)->append(' ');
}
my $url = $event->source()->tag_record('REF')->value();
my $newspaper = newspaper({ gedcom => $ged, person => $person, event => $event });
$phrase->append('appeared in a newspaper');
if(my $date = $event->date()) {
if(my $date = $newspaper->date()) {
$phrase->append(" on $date");
}
my $url = $newspaper->url();
$phrase->append(" ($url)");

# die $i->page();
Expand Down

0 comments on commit 4c1e7eb

Please sign in to comment.