From 59dbde3ddf594d348fba799d5e745e72387ca3fd Mon Sep 17 00:00:00 2001 From: Greg Roach Date: Sun, 26 Jan 2014 20:23:02 +0000 Subject: 'other' record types have no name --- library/WT/GedcomRecord.php | 5 +++++ 1 file changed, 5 insertions(+) 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) { -- cgit v1.3