summaryrefslogtreecommitdiff
path: root/library/WT/Note.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2014-01-25 00:36:34 +0000
committerGreg Roach <fisharebest@gmail.com>2014-01-25 00:36:34 +0000
commit4204ee384df7516910db3fb891290275bf9f04c8 (patch)
tree91a3296bf1d2b49d0eb9e1fa72eb0ae9ec6cb90c /library/WT/Note.php
parent823af7974a11a173407247a1b11dbc6ea50c8e7b (diff)
downloadwebtrees-4204ee384df7516910db3fb891290275bf9f04c8.tar.gz
webtrees-4204ee384df7516910db3fb891290275bf9f04c8.tar.bz2
webtrees-4204ee384df7516910db3fb891290275bf9f04c8.zip
#1266116 - Private name still shows up in search results
Diffstat (limited to 'library/WT/Note.php')
-rw-r--r--library/WT/Note.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/library/WT/Note.php b/library/WT/Note.php
index e5311c88f2..3f1943a37a 100644
--- a/library/WT/Note.php
+++ b/library/WT/Note.php
@@ -87,6 +87,8 @@ class WT_Note extends WT_GedcomRecord {
public function getAllNames() {
// Uniquely, the NOTE objects have data in their level 0 record.
// Hence the REGEX passed in the second parameter
- return parent::_getAllNames('NOTE', '0 @'.WT_REGEX_XREF.'@');
+ if (preg_match('0 @' . WT_REGEX_XREF . '@ NOTE (.+)', $this->getGedcom())) {
+ $this->_addName('NOTE', $match[1]);
+ }
}
}