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/Fact.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/Fact.php')
| -rw-r--r-- | app/Fact.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Fact.php b/app/Fact.php index 866cdc5400..d9683f7bde 100644 --- a/app/Fact.php +++ b/app/Fact.php @@ -415,7 +415,7 @@ class Fact */ public function tag(): string { - return $this->record::RECORD_TYPE . ':' . $this->tag; + return $this->record->tag() . ':' . $this->tag; } /** @@ -477,7 +477,7 @@ class Fact } } - return GedcomTag::getLabel($this->record::RECORD_TYPE . ':' . $this->tag); + return GedcomTag::getLabel($this->record->tag() . ':' . $this->tag); } /** |
