diff options
| author | Greg Roach <fisharebest@gmail.com> | 2013-08-18 08:36:13 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2013-08-18 08:36:13 +0100 |
| commit | 3b06b1410aedbc7a9f034e8b9d46d91ffb87f9f4 (patch) | |
| tree | 9502ba45a8cdaec0893a4aa69764c29c9d62786f /library/WT/GedcomRecord.php | |
| parent | 94041c5c0e0c3545451ed9c2e08877da3785ba80 (diff) | |
| download | webtrees-3b06b1410aedbc7a9f034e8b9d46d91ffb87f9f4.tar.gz webtrees-3b06b1410aedbc7a9f034e8b9d46d91ffb87f9f4.tar.bz2 webtrees-3b06b1410aedbc7a9f034e8b9d46d91ffb87f9f4.zip | |
Fix: private facts lost when editing record
Diffstat (limited to 'library/WT/GedcomRecord.php')
| -rw-r--r-- | library/WT/GedcomRecord.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/WT/GedcomRecord.php b/library/WT/GedcomRecord.php index 5524fe20c5..fb270126f5 100644 --- a/library/WT/GedcomRecord.php +++ b/library/WT/GedcomRecord.php @@ -881,7 +881,7 @@ class WT_GedcomRecord { $new_gedcom = '0 @' . $this->getXref() . '@ ' . static::RECORD_TYPE; $old_chan = $this->getFirstFact('CHAN'); // Replacing (or deleting) an existing fact - foreach ($this->getFacts() as $fact) { + foreach ($this->getFacts(null, WT_PRIV_HIDE) as $fact) { if ($fact->getFactId() == $fact_id) { if ($gedcom) { $new_gedcom .= "\n" . $gedcom; |
