diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2020-06-27 20:37:45 +0100 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2020-06-27 20:42:40 +0100 |
| commit | 02467d3222d9362e48b39bb9221b32134076ae9c (patch) | |
| tree | f0e2305c7cfbb42b1aa91d92bb53d4bee83a7fa4 /app/Http/RequestHandlers/AddNewFact.php | |
| parent | 669e70942469bf818386b44bab0ce4d237caba74 (diff) | |
| download | webtrees-02467d3222d9362e48b39bb9221b32134076ae9c.tar.gz webtrees-02467d3222d9362e48b39bb9221b32134076ae9c.tar.bz2 webtrees-02467d3222d9362e48b39bb9221b32134076ae9c.zip | |
Better handling for custom record types
Diffstat (limited to 'app/Http/RequestHandlers/AddNewFact.php')
| -rw-r--r-- | app/Http/RequestHandlers/AddNewFact.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Http/RequestHandlers/AddNewFact.php b/app/Http/RequestHandlers/AddNewFact.php index 1ed20d031a..9a89c5ffa3 100644 --- a/app/Http/RequestHandlers/AddNewFact.php +++ b/app/Http/RequestHandlers/AddNewFact.php @@ -56,7 +56,7 @@ class AddNewFact implements RequestHandlerInterface $record = Factory::gedcomRecord()->make($xref, $tree); $record = Auth::checkRecordAccess($record, true); - $title = $record->fullName() . ' - ' . GedcomTag::getLabel($record::RECORD_TYPE . ':' . $fact); + $title = $record->fullName() . ' - ' . GedcomTag::getLabel($record->tag() . ':' . $fact); return $this->viewResponse('edit/add-fact', [ 'fact' => $fact, |
