diff options
| author | Greg Roach <fisharebest@gmail.com> | 2014-01-26 20:23:02 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2014-01-26 20:23:02 +0000 |
| commit | 59dbde3ddf594d348fba799d5e745e72387ca3fd (patch) | |
| tree | 9454a20f46f3e7c1d9f198cf74e19fc231c29d73 | |
| parent | fc812da71cccd1d0a1be58c7b085fccb2a4a3e09 (diff) | |
| download | webtrees-59dbde3ddf594d348fba799d5e745e72387ca3fd.tar.gz webtrees-59dbde3ddf594d348fba799d5e745e72387ca3fd.tar.bz2 webtrees-59dbde3ddf594d348fba799d5e745e72387ca3fd.zip | |
'other' record types have no name
| -rwxr-xr-x | library/WT/GedcomRecord.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/library/WT/GedcomRecord.php b/library/WT/GedcomRecord.php index 2e605fc10b..91fe0dae50 100755 --- a/library/WT/GedcomRecord.php +++ b/library/WT/GedcomRecord.php @@ -445,6 +445,11 @@ class WT_GedcomRecord { } } + // Default for "other" object types + public function extractNames() { + $this->_addName(static::RECORD_TYPE, $this->getFallBackName(), null); + } + // Derived classes should redefine this function, otherwise the object will have no name public function getAllNames() { if ($this->_getAllNames === null) { |
