diff options
| author | Greg Roach <fisharebest@gmail.com> | 2013-10-05 20:26:23 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2013-10-05 20:26:23 +0100 |
| commit | a5ed8b8689311455ca859d145c6e58ea5243d545 (patch) | |
| tree | 7f932c62aee37c395c7fe9e978771c2ce5e2754b /library/WT/Note.php | |
| parent | 9870565e6a1ffffa7c5f97c63f321e373e431eb5 (diff) | |
| download | webtrees-a5ed8b8689311455ca859d145c6e58ea5243d545.tar.gz webtrees-a5ed8b8689311455ca859d145c6e58ea5243d545.tar.bz2 webtrees-a5ed8b8689311455ca859d145c6e58ea5243d545.zip | |
Fix: note objects do not show contents when pending
Diffstat (limited to 'library/WT/Note.php')
| -rw-r--r-- | library/WT/Note.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/WT/Note.php b/library/WT/Note.php index c3a3aeedb6..b2bdd9940a 100644 --- a/library/WT/Note.php +++ b/library/WT/Note.php @@ -33,7 +33,7 @@ class WT_Note extends WT_GedcomRecord { // Get the text contents of the note public function getNote() { - if (preg_match('/^0 @' . WT_REGEX_TAG . '@ NOTE ?(.*(?:\n1 CONT ?.*)*)/', $this->gedcom, $match)) { + if (preg_match('/^0 @' . WT_REGEX_TAG . '@ NOTE ?(.*(?:\n1 CONT ?.*)*)/', $this->gedcom.$this->pending, $match)) { return preg_replace("/\n1 CONT ?/", "\n", $match[1]); } else { return null; |
